diff options
author | Sami Mujawar <sami.mujawar@arm.com> | 2020-09-21 18:19:55 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-10-21 13:33:03 +0000 |
commit | e18bc21d6a85a1336fc6766332e56a4cdc26c52a (patch) | |
tree | e35ac59fd8b21e7d303b3fd012af34eeb914c61a /DynamicTablesPkg/Library/Common/AmlLib/AmlDbgPrint/AmlDbgPrint.h | |
parent | 5e0b708f7406ee096c7020a5c3e552574a23fe7d (diff) | |
download | edk2-e18bc21d6a85a1336fc6766332e56a4cdc26c52a.zip edk2-e18bc21d6a85a1336fc6766332e56a4cdc26c52a.tar.gz edk2-e18bc21d6a85a1336fc6766332e56a4cdc26c52a.tar.bz2 |
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>
Diffstat (limited to 'DynamicTablesPkg/Library/Common/AmlLib/AmlDbgPrint/AmlDbgPrint.h')
-rw-r--r-- | DynamicTablesPkg/Library/Common/AmlLib/AmlDbgPrint/AmlDbgPrint.h | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/DynamicTablesPkg/Library/Common/AmlLib/AmlDbgPrint/AmlDbgPrint.h b/DynamicTablesPkg/Library/Common/AmlLib/AmlDbgPrint/AmlDbgPrint.h index 68f4c74..e0d5272 100644 --- a/DynamicTablesPkg/Library/Common/AmlLib/AmlDbgPrint/AmlDbgPrint.h +++ b/DynamicTablesPkg/Library/Common/AmlLib/AmlDbgPrint/AmlDbgPrint.h @@ -45,7 +45,7 @@ **/
VOID
EFIAPI
-DumpRaw (
+AmlDbgDumpRaw (
IN CONST UINT8 * Ptr,
IN UINT32 Length
);
@@ -133,21 +133,45 @@ AmlDbgPrintNameSpace ( IN AML_ROOT_NODE_HANDLE RootNode
);
+/* Macros to encapsulate Aml Debug Print APIs.
+*/
+
+#define AMLDBG_DUMP_RAW(Ptr, Length) \
+ AmlDbgDumpRaw (Ptr, Length)
+
+#define AMLDBG_PRINT_CHARS(ErrorLevel, Buffer, Size) \
+ AmlDbgPrintChars (ErrorLevel, Buffer, Size)
+
+#define AMLDBG_PRINT_NAMESEG(Buffer) \
+ AmlDbgPrintNameSeg (Buffer)
+
+#define AMLDBG_PRINT_NAMESTR(Buffer,NewLine) \
+ AmlDbgPrintNameString (Buffer,NewLine)
+
+#define AMLDBG_PRINT_NODE(Node) \
+ AmlDbgPrintNode (Node)
+
+#define AMLDBG_PRINT_TREE(Node) \
+ AmlDbgPrintTree (Node)
+
+#define AMLDBG_PRINT_NAMESPACE(RootNode) \
+ AmlDbgPrintNameSpace (RootNode)
+
#else
-#define DumpRaw(Ptr, Length)
+#define AMLDBG_DUMP_RAW(Ptr, Length)
-#define AmlDbgPrintChars(ErrorLevel, Buffer, Size)
+#define AMLDBG_PRINT_CHARS(ErrorLevel, Buffer, Size)
-#define AmlDbgPrintNameSeg(Buffer)
+#define AMLDBG_PRINT_NAMESEG(Buffer)
-#define AmlDbgPrintNameString(Buffer,NewLine)
+#define AMLDBG_PRINT_NAMESTR(Buffer,NewLine)
-#define AmlDbgPrintNode(Node)
+#define AMLDBG_PRINT_NODE(Node)
-#define AmlDbgPrintTree(Node)
+#define AMLDBG_PRINT_TREE(Node)
-#define AmlDbgPrintNameSpace(RootNode)
+#define AMLDBG_PRINT_NAMESPACE(RootNode)
#endif // MDEPKG_NDEBUG
|