]> git.proxmox.com Git - mirror_edk2.git/commitdiff
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@272 6f19259b...
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 25 May 2006 04:02:58 +0000 (04:02 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 25 May 2006 04:02:58 +0000 (04:02 +0000)
MdePkg/Library/BasePrintLib/PrintLib.c

index 4db5e51481e07e58fffb482418e6de763b019896..816c887088589d02fa8327d964b8d64895febcf8 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
-            (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
+            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
             );\r
           ArgumentString = ValueBuffer;\r
         }\r
@@ -359,11 +359,11 @@ BasePrintLibVSPrint (
             0,\r
             0,\r
             "%02d/%02d/%04d  %02d:%02d",\r
-            (UINTN) TmpTime->Month,\r
-            (UINTN) TmpTime->Day,\r
-            (UINTN) TmpTime->Year,\r
-            (UINTN) TmpTime->Hour,\r
-            (UINTN) TmpTime->Minute\r
+            TmpTime->Month,\r
+            TmpTime->Day,\r
+            TmpTime->Year,\r
+            TmpTime->Hour,\r
+            TmpTime->Minute\r
             );\r
           ArgumentString = ValueBuffer;\r
         }\r