From 4b0f378c1988f717a222cbe8461782ae13185315 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 26 May 2011 04:53:24 +0000 Subject: Fix ICC build break. Signed-off-by: lgao4 Reviewed-by: rsun3 Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11704 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BasePrintLib/PrintLibInternal.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'MdePkg') diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.c b/MdePkg/Library/BasePrintLib/PrintLibInternal.c index 1b85490655..2be6ad55e7 100644 --- a/MdePkg/Library/BasePrintLib/PrintLibInternal.c +++ b/MdePkg/Library/BasePrintLib/PrintLibInternal.c @@ -323,6 +323,9 @@ BasePrintLibSPrintMarker ( UINTN Digits; UINTN Radix; RETURN_STATUS Status; + UINT32 GuidData1; + UINT16 GuidData2; + UINT16 GuidData3; if (BufferSize == 0) { return 0; @@ -631,14 +634,17 @@ BasePrintLibSPrintMarker ( if (TmpGuid == NULL) { ArgumentString = ""; } else { + GuidData1 = ReadUnaligned32 (&(TmpGuid->Data1)); + GuidData2 = ReadUnaligned16 (&(TmpGuid->Data2)); + GuidData3 = ReadUnaligned16 (&(TmpGuid->Data3)); BasePrintLibSPrint ( ValueBuffer, MAXIMUM_VALUE_CHARACTERS, 0, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", - ReadUnaligned32 (&(TmpGuid->Data1)), - ReadUnaligned16 (&(TmpGuid->Data2)), - ReadUnaligned16 (&(TmpGuid->Data3)), + GuidData1, + GuidData2, + GuidData3, TmpGuid->Data4[0], TmpGuid->Data4[1], TmpGuid->Data4[2], -- cgit v1.2.3