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:
committed by
mergify[bot]
parent
5e0b708f74
commit
e18bc21d6a
@@ -82,7 +82,7 @@ AmlParseFieldElement (
|
||||
}
|
||||
|
||||
// Skip the field opcode (1 byte) as it is already in the FieldByteEncoding.
|
||||
DumpRaw (CurrPos, 1);
|
||||
AMLDBG_DUMP_RAW (CurrPos, 1);
|
||||
Status = AmlStreamProgress (FStream, 1);
|
||||
if (EFI_ERROR (Status)) {
|
||||
ASSERT (0);
|
||||
@@ -106,7 +106,7 @@ AmlParseFieldElement (
|
||||
}
|
||||
|
||||
// Move stream forward as the PkgLen has been read.
|
||||
DumpRaw (CurrPos, PkgLenOffset);
|
||||
AMLDBG_DUMP_RAW (CurrPos, PkgLenOffset);
|
||||
Status = AmlStreamProgress (FStream, PkgLenOffset);
|
||||
if (EFI_ERROR (Status)) {
|
||||
ASSERT (0);
|
||||
|
@@ -173,7 +173,7 @@ AmlDbgPrintNameSpaceRefList (
|
||||
while (CurrLink != NameSpaceRefList) {
|
||||
CurrNameSpaceNode = (AML_NAMESPACE_REF_NODE*)CurrLink;
|
||||
|
||||
AmlDbgPrintChars (
|
||||
AMLDBG_PRINT_CHARS (
|
||||
DEBUG_INFO,
|
||||
CurrNameSpaceNode->RawAbsolutePath,
|
||||
CurrNameSpaceNode->RawAbsolutePathSize
|
||||
@@ -749,7 +749,7 @@ AmlFindMethodDefinition (
|
||||
}
|
||||
|
||||
DEBUG ((DEBUG_VERBOSE, "AmlMethodParser: Checking absolute name: "));
|
||||
AmlDbgPrintChars (
|
||||
AMLDBG_PRINT_CHARS (
|
||||
DEBUG_VERBOSE,
|
||||
(CONST CHAR8*)AmlStreamGetCurrPos (RawAbsolutePathFStream),
|
||||
AmlStreamGetMaxBufferSize (RawAbsolutePathFStream)
|
||||
@@ -768,7 +768,7 @@ AmlFindMethodDefinition (
|
||||
ProbedNameSpaceRefNode = (AML_NAMESPACE_REF_NODE*)NextLink;
|
||||
|
||||
// Print the raw absolute path of the probed node.
|
||||
AmlDbgPrintChars (
|
||||
AMLDBG_PRINT_CHARS (
|
||||
DEBUG_VERBOSE,
|
||||
ProbedNameSpaceRefNode->RawAbsolutePath,
|
||||
ProbedNameSpaceRefNode->RawAbsolutePathSize
|
||||
@@ -1067,7 +1067,7 @@ AmlIsMethodInvocation (
|
||||
DEBUG_VERBOSE,
|
||||
"AmlMethodParser: Corresponding method definition: "
|
||||
));
|
||||
AmlDbgPrintChars (
|
||||
AMLDBG_PRINT_CHARS (
|
||||
DEBUG_VERBOSE,
|
||||
NameSpaceRefNode->RawAbsolutePath,
|
||||
NameSpaceRefNode->RawAbsolutePathSize
|
||||
@@ -1230,7 +1230,7 @@ AmlAddNameSpaceReference (
|
||||
DEBUG_VERBOSE,
|
||||
"AmlMethodParser: Adding namespace reference with name:\n"
|
||||
));
|
||||
AmlDbgPrintChars (
|
||||
AMLDBG_PRINT_CHARS (
|
||||
DEBUG_VERBOSE,
|
||||
(CONST CHAR8*)AmlStreamGetCurrPos (&RawAbsolutePathBStream),
|
||||
AmlStreamGetIndex (&RawAbsolutePathBStream)
|
||||
|
@@ -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);
|
||||
|
@@ -310,7 +310,7 @@ AmlParseResourceData (
|
||||
return Status;
|
||||
}
|
||||
|
||||
DumpRaw (CurrRdElement, CurrRdElementSize);
|
||||
AMLDBG_DUMP_RAW (CurrRdElement, CurrRdElementSize);
|
||||
|
||||
// Exit the loop when finding the resource data end tag.
|
||||
if (AmlRdCompareDescId (
|
||||
|
Reference in New Issue
Block a user