ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2012 build failure
Fix following build error: UefiShellAcpiViewCommandLib\AcpiParser.c(519) : error C2308: concatenating mismatched strings Concatenating wide "ERROR: %a: Offset Mismatch for %s" with narrow "CurrentOffset = %d FieldOffset = %d" cc: Alexei Fedorov <Alexei.Fedorov@arm.com> cc: Ruiyu Ni <ruiyu.ni@intel.com> cc: Jaben Carsey <jaben.carsey@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
@ -516,7 +516,7 @@ ParseAcpi (
|
|||||||
IncrementErrorCount ();
|
IncrementErrorCount ();
|
||||||
Print (
|
Print (
|
||||||
L"\nERROR: %a: Offset Mismatch for %s\n"
|
L"\nERROR: %a: Offset Mismatch for %s\n"
|
||||||
"CurrentOffset = %d FieldOffset = %d\n",
|
L"CurrentOffset = %d FieldOffset = %d\n",
|
||||||
AsciiName,
|
AsciiName,
|
||||||
Parser[Index].NameStr,
|
Parser[Index].NameStr,
|
||||||
Offset,
|
Offset,
|
||||||
|
@ -120,7 +120,7 @@ ValidateNameSpaceStrLen (
|
|||||||
IncrementErrorCount ();
|
IncrementErrorCount ();
|
||||||
Print (
|
Print (
|
||||||
L"\nERROR: NamespaceString Length = %d. If no Namespace device exists,\n"
|
L"\nERROR: NamespaceString Length = %d. If no Namespace device exists,\n"
|
||||||
" then NamespaceString[] must contain a period '.'",
|
L" then NamespaceString[] must contain a period '.'",
|
||||||
NameSpaceStrLen
|
NameSpaceStrLen
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -231,7 +231,7 @@ ParseAcpiMadt (
|
|||||||
IncrementErrorCount ();
|
IncrementErrorCount ();
|
||||||
Print (
|
Print (
|
||||||
L"ERROR: Invalid Interrupt Controller Length,"
|
L"ERROR: Invalid Interrupt Controller Length,"
|
||||||
" Type = %d, Length = %d\n",
|
L" Type = %d, Length = %d\n",
|
||||||
*MadtInterruptControllerType,
|
*MadtInterruptControllerType,
|
||||||
*MadtInterruptControllerLength
|
*MadtInterruptControllerLength
|
||||||
);
|
);
|
||||||
@ -256,7 +256,7 @@ ParseAcpiMadt (
|
|||||||
IncrementErrorCount ();
|
IncrementErrorCount ();
|
||||||
Print (
|
Print (
|
||||||
L"ERROR: Only one GICD must be present,"
|
L"ERROR: Only one GICD must be present,"
|
||||||
" GICDCount = %d\n",
|
L" GICDCount = %d\n",
|
||||||
GICDCount
|
GICDCount
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -311,7 +311,7 @@ ParseAcpiMadt (
|
|||||||
IncrementErrorCount ();
|
IncrementErrorCount ();
|
||||||
Print (
|
Print (
|
||||||
L"ERROR: Unknown Interrupt Controller Structure,"
|
L"ERROR: Unknown Interrupt Controller Structure,"
|
||||||
" Type = %d, Length = %d\n",
|
L" Type = %d, Length = %d\n",
|
||||||
*MadtInterruptControllerType,
|
*MadtInterruptControllerType,
|
||||||
*MadtInterruptControllerLength
|
*MadtInterruptControllerLength
|
||||||
);
|
);
|
||||||
|
@ -119,7 +119,7 @@ ParseAcpiSlit (
|
|||||||
IncrementErrorCount ();
|
IncrementErrorCount ();
|
||||||
Print (
|
Print (
|
||||||
L"ERROR: Diagonal Element[0x%lx][0x%lx] (%3d)."
|
L"ERROR: Diagonal Element[0x%lx][0x%lx] (%3d)."
|
||||||
" Normalized Value is not 10\n",
|
L" Normalized Value is not 10\n",
|
||||||
Count,
|
Count,
|
||||||
Index,
|
Index,
|
||||||
SLIT_ELEMENT (LocalityPtr, Count, Index)
|
SLIT_ELEMENT (LocalityPtr, Count, Index)
|
||||||
@ -131,7 +131,7 @@ ParseAcpiSlit (
|
|||||||
IncrementErrorCount ();
|
IncrementErrorCount ();
|
||||||
Print (
|
Print (
|
||||||
L"ERROR: Relative distances for Element[0x%lx][0x%lx] (%3d) and \n"
|
L"ERROR: Relative distances for Element[0x%lx][0x%lx] (%3d) and \n"
|
||||||
"Element[0x%lx][0x%lx] (%3d) do not match.\n",
|
L"Element[0x%lx][0x%lx] (%3d) do not match.\n",
|
||||||
Count,
|
Count,
|
||||||
Index,
|
Index,
|
||||||
SLIT_ELEMENT (LocalityPtr, Count, Index),
|
SLIT_ELEMENT (LocalityPtr, Count, Index),
|
||||||
|
Reference in New Issue
Block a user