DynamicTablesPkg: AmlEncoding change debug macro

Change the AML_DEBUG_STR() macro to AML_OPCODE_DEF() that takes a string
and the AML OpCode as input so that the text description and the AML
OpCode are grouped. The AML_OPCODE_DEF() macro also strips the string
description for release builds.

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 19:00:26 +01:00
committed by mergify[bot]
parent e18bc21d6a
commit 8670a4ce67
2 changed files with 154 additions and 154 deletions

View File

@@ -15,9 +15,9 @@
#include <IndustryStandard/AcpiAml.h>
#if !defined (MDEPKG_NDEBUG)
#define AML_DEBUG_STR(str) str,
#define AML_OPCODE_DEF(str, OpCode) str, OpCode
#else
#define AML_DEBUG_STR(x)
#define AML_OPCODE_DEF(str, OpCode) OpCode
#endif // MDEPKG_NDEBUG
/** AML types.