ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2017 compilation errors
authorAlexeiFedorov <Alexei.Fedorov@arm.com>
Fri, 13 Jul 2018 15:17:01 +0000 (23:17 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 2 Aug 2018 01:57:45 +0000 (09:57 +0800)
This patch fixes VS2017 compilation errors for
UefiShellAcpiViewCommandLib\Parsers\Gtdt\GtdtParser.c
and
UefiShellAcpiViewCommandLib\Parsers\Xsdt\XsdtParser.c
reported in
https://bugzilla.tianocore.org/show_bug.cgi?id=985
https://bugzilla.tianocore.org/show_bug.cgi?id=986

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Gtdt/GtdtParser.c
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Xsdt/XsdtParser.c

index 3a3cee9..0ab460b 100644 (file)
@@ -161,12 +161,12 @@ STATIC
 VOID\r
 DumpGTBlock (\r
   IN UINT8* Ptr,\r
-  IN UINT16 Length\r
+  IN UINT32 Length\r
   )\r
 {\r
   UINT32 Index;\r
   UINT32 Offset;\r
-  UINT16 GTBlockTimerLength;\r
+  UINT32 GTBlockTimerLength;\r
 \r
   Offset = ParseAcpi (\r
              TRUE,\r
index 99521cd..a5e1412 100644 (file)
@@ -96,7 +96,7 @@ ParseAcpiXsdt (
       CONST UINT8*  Revision;\r
 \r
       if ((UINT64*)(UINTN)(*TablePointer) != NULL) {\r
-        UINT8*      Ptr;\r
+        UINT8*      SignaturePtr;\r
 \r
         ParseAcpiHeader (\r
           (UINT8*)(UINTN)(*TablePointer),\r
@@ -105,17 +105,17 @@ ParseAcpiXsdt (
           &Revision\r
           );\r
 \r
-        Ptr = (UINT8*)Signature;\r
+        SignaturePtr = (UINT8*)Signature;\r
 \r
         UnicodeSPrint (\r
           Buffer,\r
           sizeof (Buffer),\r
           L"Entry[%d] - %c%c%c%c",\r
           EntryIndex++,\r
-          Ptr[0],\r
-          Ptr[1],\r
-          Ptr[2],\r
-          Ptr[3]\r
+          SignaturePtr[0],\r
+          SignaturePtr[1],\r
+          SignaturePtr[2],\r
+          SignaturePtr[3]\r
           );\r
       } else {\r
         UnicodeSPrint (\r