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:
committed by
mergify[bot]
parent
e18bc21d6a
commit
8670a4ce67
@@ -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.
|
||||
|
Reference in New Issue
Block a user