Scrub BaseTools C Source to solve some gaps between EFI BaseTypes to POSIX types...
authorqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 7 Aug 2009 11:54:30 +0000 (11:54 +0000)
committerqhuang8 <qhuang8@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 7 Aug 2009 11:54:30 +0000 (11:54 +0000)
commit81e989ab14e3f63c142390df9622ab66ab04b80a
tree519d081a68dfa7cc7af2818766fb71fb160e958a
parentb2029102114abf7e699c0dfb7be4e739284ac556
Scrub BaseTools C Source to solve some gaps between EFI BaseTypes to POSIX types for printf() and other libc functions.
The following rules are applied:
INT8, INT16   => "%d" with no type cast required.                            e.g. printf ("%d", Int16Value);
UINT8, UINT16 => "%u","%x" or "%X" with no type cast required.               e.g. printf ("%x", Uint16Value);
INT32         => "%d" with type-cast (int)                                   e.g. printf ("%d", (int) Int32Value);
UINT32        => "%u","%x" or "%X" with type-cast (unsigned)                 e.g. printf ("%u", (unsigned) Uint32Value)
INT64         => "%lld" with type-cast (long long)                           e.g. printf ("%lld", (long long) Int64Value);
UINT64        => "%llu", "%llx" or "llX" with type-cast (unsigned long long) e.g. printf ("%llX", (unsigned long long) Uint64Value);

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1675 7335b38e-4728-0410-8992-fb3ffe349368
18 files changed:
Source/C/BootSectImage/bootsectimage.c
Source/C/Common/CommonLib.c
Source/C/Common/EfiUtilityMsgs.c
Source/C/Common/MyAlloc.c
Source/C/Common/ParseInf.c
Source/C/Common/SimpleFileParsing.c
Source/C/EfiRom/EfiRom.c
Source/C/GenBootSector/GenBootSector.c
Source/C/GenCrc32/GenCrc32.c
Source/C/GenFfs/GenFfs.c
Source/C/GenFv/GenFv.c
Source/C/GenFv/GenFvInternalLib.c
Source/C/GenFw/GenFw.c
Source/C/GenPage/GenPage.c
Source/C/GenSec/GenSec.c
Source/C/GenVtf/GenVtf.c
Source/C/GnuGenBootSector/GnuGenBootSector.c
Source/C/VolInfo/VolInfo.c