DynamicTablesPkg: AmlLib\AmlDbgPrint fix ECC error

Fix ECC error 8001 reported errors in AmlDbgPrint.
  [8001] Only capital letters are allowed to be used
         for #define declarations.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
This commit is contained in:
Sami Mujawar
2020-09-21 18:19:55 +01:00
committed by mergify[bot]
parent 5e0b708f74
commit e18bc21d6a
8 changed files with 55 additions and 30 deletions

View File

@ -182,7 +182,7 @@ AmlParseUIntX (
return Status;
}
DumpRaw (AmlStreamGetCurrPos (FStream), UIntXSize);
AMLDBG_DUMP_RAW (AmlStreamGetCurrPos (FStream), UIntXSize);
// Move stream forward by the size of UIntX.
Status = AmlStreamProgress (FStream, UIntXSize);
@ -266,7 +266,7 @@ AmlParseNameString (
return Status;
}
DumpRaw (AmlStreamGetCurrPos (FStream), StrSize);
AMLDBG_DUMP_RAW (AmlStreamGetCurrPos (FStream), StrSize);
// Move the stream forward by StrSize.
Status = AmlStreamProgress (FStream, StrSize);
@ -335,7 +335,7 @@ AmlParseString (
StrSize++;
} while (Byte != '\0');
DumpRaw (Buffer, StrSize);
AMLDBG_DUMP_RAW (Buffer, StrSize);
Status = AmlCreateDataNode (
AmlTypeToNodeDataType (ExpectedFormat),
@ -441,7 +441,7 @@ AmlParseObject (
}
// Print the opcode.
DumpRaw (Buffer, OpCodeSize);
AMLDBG_DUMP_RAW (Buffer, OpCodeSize);
if (!IS_END_OF_STREAM (FStream)) {
// 3. Parse the PkgLength field, if present.
@ -454,7 +454,7 @@ AmlParseObject (
}
// Print the package length.
DumpRaw (Buffer, PkgOffset);
AMLDBG_DUMP_RAW (Buffer, PkgOffset);
// Adjust the size of the stream if it is valid package length.
FreeSpace = AmlStreamGetFreeSpace (FStream);
@ -559,7 +559,7 @@ AmlParseFieldPkgLen (
return Status;
}
DumpRaw (Buffer, PkgOffset);
AMLDBG_DUMP_RAW (Buffer, PkgOffset);
Status = AmlStreamProgress (FStream, PkgOffset);
if (EFI_ERROR (Status)) {
@ -844,7 +844,7 @@ AmlParseByteList (
return Status;
}
DumpRaw (Buffer, BufferSize);
AMLDBG_DUMP_RAW (Buffer, BufferSize);
// Move the stream forward as we have consumed the Buffer.
Status = AmlStreamProgress (FStream, BufferSize);