]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BasePrintLib/PrintLibInternal.c
Fix ICC build break.
[mirror_edk2.git] / MdePkg / Library / BasePrintLib / PrintLibInternal.c
index 1b854906559be0c3ffe9973506ac6ee093dc405c..2be6ad55e7a158799127e02a1e81a908279a7690 100644 (file)
@@ -323,6 +323,9 @@ BasePrintLibSPrintMarker (
   UINTN             Digits;\r
   UINTN             Radix;\r
   RETURN_STATUS     Status;\r
+  UINT32            GuidData1;\r
+  UINT16            GuidData2;\r
+  UINT16            GuidData3;\r
 \r
   if (BufferSize == 0) {\r
     return 0;\r
@@ -631,14 +634,17 @@ BasePrintLibSPrintMarker (
         if (TmpGuid == NULL) {\r
           ArgumentString = "<null guid>";\r
         } else {\r
+          GuidData1 = ReadUnaligned32 (&(TmpGuid->Data1));\r
+          GuidData2 = ReadUnaligned16 (&(TmpGuid->Data2));\r
+          GuidData3 = ReadUnaligned16 (&(TmpGuid->Data3));\r
           BasePrintLibSPrint (\r
             ValueBuffer,\r
             MAXIMUM_VALUE_CHARACTERS, \r
             0,\r
             "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",\r
-            ReadUnaligned32 (&(TmpGuid->Data1)),\r
-            ReadUnaligned16 (&(TmpGuid->Data2)),\r
-            ReadUnaligned16 (&(TmpGuid->Data3)),\r
+            GuidData1,\r
+            GuidData2,\r
+            GuidData3,\r
             TmpGuid->Data4[0],\r
             TmpGuid->Data4[1],\r
             TmpGuid->Data4[2],\r