git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@263 6f19259b...
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 24 May 2006 10:23:10 +0000 (10:23 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 24 May 2006 10:23:10 +0000 (10:23 +0000)
MdePkg/Library/BasePrintLib/PrintLib.c

index 9b8285f..4db5e51 100644 (file)
@@ -133,7 +133,7 @@ BasePrintLibVSPrint (
   //\r
   // Get the first character from the format string\r
   //\r
-  FormatCharacter = (*Format | (*(Format + 1) << 8)) & FormatMask;\r
+  FormatCharacter = (*Format | (*(Format - 1) << 8)) & FormatMask;\r
 \r
   //\r
   // Loop until the end of the format string is reached or the output buffer is full\r
@@ -333,17 +333,17 @@ BasePrintLibVSPrint (
             0, \r
             0,\r
             "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",\r
-            TmpGuid->Data1,                    \r
-            TmpGuid->Data2,\r
-            TmpGuid->Data3,\r
-            TmpGuid->Data4[0],\r
-            TmpGuid->Data4[1],\r
-            TmpGuid->Data4[2],\r
-            TmpGuid->Data4[3],\r
-            TmpGuid->Data4[4],\r
-            TmpGuid->Data4[5],\r
-            TmpGuid->Data4[6],\r
-            TmpGuid->Data4[7]\r
+            (UINTN) TmpGuid->Data1,\r
+            (UINTN) TmpGuid->Data2,\r
+            (UINTN) TmpGuid->Data3,\r
+            (UINTN) TmpGuid->Data4[0],\r
+            (UINTN) TmpGuid->Data4[1],\r
+            (UINTN) TmpGuid->Data4[2],\r
+            (UINTN) TmpGuid->Data4[3],\r
+            (UINTN) TmpGuid->Data4[4],\r
+            (UINTN) TmpGuid->Data4[5],\r
+            (UINTN) TmpGuid->Data4[6],\r
+            (UINTN) TmpGuid->Data4[7]\r
             );\r
           ArgumentString = ValueBuffer;\r
         }\r
@@ -359,11 +359,11 @@ BasePrintLibVSPrint (
             0,\r
             0,\r
             "%02d/%02d/%04d  %02d:%02d",\r
-            TmpTime->Month,\r
-            TmpTime->Day,\r
-            TmpTime->Year,\r
-            TmpTime->Hour,\r
-            TmpTime->Minute\r
+            (UINTN) TmpTime->Month,\r
+            (UINTN) TmpTime->Day,\r
+            (UINTN) TmpTime->Year,\r
+            (UINTN) TmpTime->Hour,\r
+            (UINTN) TmpTime->Minute\r
             );\r
           ArgumentString = ValueBuffer;\r
         }\r