diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-24 10:23:10 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-05-24 10:23:10 +0000 |
commit | da4aa0f21fed792b3c66062ae2943cf86b57c970 (patch) | |
tree | a22d7ffb91bd35db5640aa64c100f6633d05b584 /MdePkg/Library/BasePrintLib | |
parent | 6776c08a6dfd1d276b4581e46e3387e4e3a0c2a7 (diff) | |
download | edk2-platforms-da4aa0f21fed792b3c66062ae2943cf86b57c970.tar.xz |
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@263 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BasePrintLib')
-rw-r--r-- | MdePkg/Library/BasePrintLib/PrintLib.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/MdePkg/Library/BasePrintLib/PrintLib.c b/MdePkg/Library/BasePrintLib/PrintLib.c index 9b8285f714..4db5e51481 100644 --- a/MdePkg/Library/BasePrintLib/PrintLib.c +++ b/MdePkg/Library/BasePrintLib/PrintLib.c @@ -133,7 +133,7 @@ BasePrintLibVSPrint ( //
// Get the first character from the format string
//
- FormatCharacter = (*Format | (*(Format + 1) << 8)) & FormatMask;
+ FormatCharacter = (*Format | (*(Format - 1) << 8)) & FormatMask;
//
// Loop until the end of the format string is reached or the output buffer is full
@@ -333,17 +333,17 @@ BasePrintLibVSPrint ( 0,
0,
"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
- TmpGuid->Data1,
- TmpGuid->Data2,
- TmpGuid->Data3,
- TmpGuid->Data4[0],
- TmpGuid->Data4[1],
- TmpGuid->Data4[2],
- TmpGuid->Data4[3],
- TmpGuid->Data4[4],
- TmpGuid->Data4[5],
- TmpGuid->Data4[6],
- TmpGuid->Data4[7]
+ (UINTN) TmpGuid->Data1,
+ (UINTN) TmpGuid->Data2,
+ (UINTN) TmpGuid->Data3,
+ (UINTN) TmpGuid->Data4[0],
+ (UINTN) TmpGuid->Data4[1],
+ (UINTN) TmpGuid->Data4[2],
+ (UINTN) TmpGuid->Data4[3],
+ (UINTN) TmpGuid->Data4[4],
+ (UINTN) TmpGuid->Data4[5],
+ (UINTN) TmpGuid->Data4[6],
+ (UINTN) TmpGuid->Data4[7]
);
ArgumentString = ValueBuffer;
}
@@ -359,11 +359,11 @@ BasePrintLibVSPrint ( 0,
0,
"%02d/%02d/%04d %02d:%02d",
- TmpTime->Month,
- TmpTime->Day,
- TmpTime->Year,
- TmpTime->Hour,
- TmpTime->Minute
+ (UINTN) TmpTime->Month,
+ (UINTN) TmpTime->Day,
+ (UINTN) TmpTime->Year,
+ (UINTN) TmpTime->Hour,
+ (UINTN) TmpTime->Minute
);
ArgumentString = ValueBuffer;
}
|