]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update BasePrintLib to handle the unaligned GUID.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 24 May 2011 02:08:31 +0000 (02:08 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 24 May 2011 02:08:31 +0000 (02:08 +0000)
Signed-off-by: lgao4
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11697 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BasePrintLib/PrintLibInternal.c

index 085d37f151cf94cbbfd8f7978e7b045397edc40e..1b854906559be0c3ffe9973506ac6ee093dc405c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Print Library internal worker functions.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -636,9 +636,9 @@ BasePrintLibSPrintMarker (
             MAXIMUM_VALUE_CHARACTERS, \r
             0,\r
             "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",\r
-            TmpGuid->Data1,\r
-            TmpGuid->Data2,\r
-            TmpGuid->Data3,\r
+            ReadUnaligned32 (&(TmpGuid->Data1)),\r
+            ReadUnaligned16 (&(TmpGuid->Data2)),\r
+            ReadUnaligned16 (&(TmpGuid->Data3)),\r
             TmpGuid->Data4[0],\r
             TmpGuid->Data4[1],\r
             TmpGuid->Data4[2],\r