]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Xsdt/XsdtParser.c
ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2017 compilation errors
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / Parsers / Xsdt / XsdtParser.c
index 0ed65d2e72cd213ad7695fefd4a5a0c06f96ff2c..a5e1412484b56258c40e0cb4d795157ffbce6826 100644 (file)
@@ -1,4 +1,4 @@
-/**\r
+/** @file\r
   XSDT table parser\r
 \r
   Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.\r
@@ -29,6 +29,9 @@ STATIC CONST ACPI_PARSER XsdtParser[] = {
   PARSE_ACPI_HEADER (&AcpiHdrInfo)\r
 };\r
 \r
+/**\r
+  Get the ACPI XSDT header info.\r
+**/\r
 CONST ACPI_DESCRIPTION_HEADER_INFO* CONST\r
 EFIAPI\r
 GetAcpiXsdtHeaderInfo (\r
@@ -38,8 +41,8 @@ GetAcpiXsdtHeaderInfo (
   return &AcpiHdrInfo;\r
 }\r
 \r
-/** This function parses the ACPI XSDT table\r
-  and optionally traces the ACPI table fields.\r
+/**\r
+  This function parses the ACPI XSDT table and optionally traces the ACPI table fields.\r
 \r
   This function also performs validation of the XSDT table.\r
 \r
@@ -47,7 +50,7 @@ GetAcpiXsdtHeaderInfo (
   @param [in] Ptr                Pointer to the start of the buffer.\r
   @param [in] AcpiTableLength    Length of the ACPI table.\r
   @param [in] AcpiTableRevision  Revision of the ACPI table.\r
-*/\r
+**/\r
 VOID\r
 EFIAPI\r
 ParseAcpiXsdt (\r
@@ -93,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
@@ -102,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