From bc7bbd3bc4c990014da33cae0979b3bc9138d3ec Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Thu, 10 Aug 2023 17:03:06 -0400 Subject: SecurityPkg.ci.yaml: Add debug macro exception Adds a CI YAML entry to acknowledge a case where a single argument is matched to a format specifier with a ternary operator. Cc: Jiewen Yao Cc: Jian J Wang Signed-off-by: Michael Kubacki Reviewed-by: Jiewen Yao --- SecurityPkg/SecurityPkg.ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'SecurityPkg') diff --git a/SecurityPkg/SecurityPkg.ci.yaml b/SecurityPkg/SecurityPkg.ci.yaml index 2138b0a5e2..3f03762bd6 100644 --- a/SecurityPkg/SecurityPkg.ci.yaml +++ b/SecurityPkg/SecurityPkg.ci.yaml @@ -106,5 +106,14 @@ "Defines": { "BLD_*_CONTINUOUS_INTEGRATION": "TRUE", + }, + + "DebugMacroCheck": { + "StringSubstitutions": { + # SecurityPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c + # Reason: Acknowledging use of two format specifiers in string with one argument + # Replace ternary operator in debug string with single specifier + 'Index == COLUME_SIZE/2 ? " | %02x" : " %02x"': "%d" + } } } -- cgit v1.2.3