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
This commit is contained in:
lgao4 2011-05-26 04:53:24 +00:00
parent 2e8e9ed5ed
commit 4b0f378c19

View File

@ -323,6 +323,9 @@ BasePrintLibSPrintMarker (
UINTN Digits; UINTN Digits;
UINTN Radix; UINTN Radix;
RETURN_STATUS Status; RETURN_STATUS Status;
UINT32 GuidData1;
UINT16 GuidData2;
UINT16 GuidData3;
if (BufferSize == 0) { if (BufferSize == 0) {
return 0; return 0;
@ -631,14 +634,17 @@ BasePrintLibSPrintMarker (
if (TmpGuid == NULL) { if (TmpGuid == NULL) {
ArgumentString = "<null guid>"; ArgumentString = "<null guid>";
} else { } else {
GuidData1 = ReadUnaligned32 (&(TmpGuid->Data1));
GuidData2 = ReadUnaligned16 (&(TmpGuid->Data2));
GuidData3 = ReadUnaligned16 (&(TmpGuid->Data3));
BasePrintLibSPrint ( BasePrintLibSPrint (
ValueBuffer, ValueBuffer,
MAXIMUM_VALUE_CHARACTERS, MAXIMUM_VALUE_CHARACTERS,
0, 0,
"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
ReadUnaligned32 (&(TmpGuid->Data1)), GuidData1,
ReadUnaligned16 (&(TmpGuid->Data2)), GuidData2,
ReadUnaligned16 (&(TmpGuid->Data3)), GuidData3,
TmpGuid->Data4[0], TmpGuid->Data4[0],
TmpGuid->Data4[1], TmpGuid->Data4[1],
TmpGuid->Data4[2], TmpGuid->Data4[2],