diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-05-26 04:53:24 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-05-26 04:53:24 +0000 |
commit | 4b0f378c1988f717a222cbe8461782ae13185315 (patch) | |
tree | 9d8cecf02f4646e51aa6d89a70b5103eecce1303 | |
parent | 2e8e9ed5ed0a348946c585ceecf611a2cec7f6da (diff) | |
download | edk2-4b0f378c1988f717a222cbe8461782ae13185315.tar.gz edk2-4b0f378c1988f717a222cbe8461782ae13185315.tar.bz2 edk2-4b0f378c1988f717a222cbe8461782ae13185315.zip |
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
-rw-r--r-- | MdePkg/Library/BasePrintLib/PrintLibInternal.c | 12 |
1 files changed, 9 insertions, 3 deletions
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 = "<null guid>";
} 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],
|