]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c
ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2017 compilation errors
[mirror_edk2.git] / ShellPkg / Library / UefiShellAcpiViewCommandLib / AcpiParser.c
index 6d3bc451acd6386774f74c21a0554ab1e541b4d9..18c4983e9524f4d48502bd9c3260deaba1f35edf 100644 (file)
@@ -476,6 +476,7 @@ ParseAcpi (
   UINT32  Index;\r
   UINT32  Offset;\r
   BOOLEAN HighLight;\r
+  UINTN   OriginalAttribute;\r
 \r
   Offset = 0;\r
 \r
@@ -484,7 +485,6 @@ ParseAcpi (
 \r
   if (Trace && (AsciiName != NULL)){\r
     HighLight = GetColourHighlighting ();\r
-    UINTN   OriginalAttribute;\r
 \r
     if (HighLight) {\r
       OriginalAttribute = gST->ConOut->Mode->Attribute;\r
@@ -516,7 +516,7 @@ ParseAcpi (
       IncrementErrorCount ();\r
       Print (\r
         L"\nERROR: %a: Offset Mismatch for %s\n"\r
-          "CurrentOffset = %d FieldOffset = %d\n",\r
+          L"CurrentOffset = %d FieldOffset = %d\n",\r
         AsciiName,\r
         Parser[Index].NameStr,\r
         Offset,\r