ShellPkg/UefiShellAcpiViewCommandLib: Fix VS2017 compilation errors
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>
This commit is contained in:
@ -161,12 +161,12 @@ STATIC
|
|||||||
VOID
|
VOID
|
||||||
DumpGTBlock (
|
DumpGTBlock (
|
||||||
IN UINT8* Ptr,
|
IN UINT8* Ptr,
|
||||||
IN UINT16 Length
|
IN UINT32 Length
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT32 Index;
|
UINT32 Index;
|
||||||
UINT32 Offset;
|
UINT32 Offset;
|
||||||
UINT16 GTBlockTimerLength;
|
UINT32 GTBlockTimerLength;
|
||||||
|
|
||||||
Offset = ParseAcpi (
|
Offset = ParseAcpi (
|
||||||
TRUE,
|
TRUE,
|
||||||
|
@ -96,7 +96,7 @@ ParseAcpiXsdt (
|
|||||||
CONST UINT8* Revision;
|
CONST UINT8* Revision;
|
||||||
|
|
||||||
if ((UINT64*)(UINTN)(*TablePointer) != NULL) {
|
if ((UINT64*)(UINTN)(*TablePointer) != NULL) {
|
||||||
UINT8* Ptr;
|
UINT8* SignaturePtr;
|
||||||
|
|
||||||
ParseAcpiHeader (
|
ParseAcpiHeader (
|
||||||
(UINT8*)(UINTN)(*TablePointer),
|
(UINT8*)(UINTN)(*TablePointer),
|
||||||
@ -105,17 +105,17 @@ ParseAcpiXsdt (
|
|||||||
&Revision
|
&Revision
|
||||||
);
|
);
|
||||||
|
|
||||||
Ptr = (UINT8*)Signature;
|
SignaturePtr = (UINT8*)Signature;
|
||||||
|
|
||||||
UnicodeSPrint (
|
UnicodeSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
sizeof (Buffer),
|
sizeof (Buffer),
|
||||||
L"Entry[%d] - %c%c%c%c",
|
L"Entry[%d] - %c%c%c%c",
|
||||||
EntryIndex++,
|
EntryIndex++,
|
||||||
Ptr[0],
|
SignaturePtr[0],
|
||||||
Ptr[1],
|
SignaturePtr[1],
|
||||||
Ptr[2],
|
SignaturePtr[2],
|
||||||
Ptr[3]
|
SignaturePtr[3]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
UnicodeSPrint (
|
UnicodeSPrint (
|
||||||
|
Reference in New Issue
Block a user