[SDK] Don't just infinitely spam the DbgPrint in the bootloader (#6763)

This commit is contained in:
Justin Miller 2024-04-18 12:08:00 -07:00 committed by GitHub
parent dd6c1c8843
commit ad9c634efa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -380,7 +380,8 @@ extern ULONG CmlibTraceLevel;
// Hack since big keys are not yet supported
//
#ifdef _BLDR_
#define ASSERT_VALUE_BIG(h, s) DbgPrint("Big keys aren't supported!\n");
#define ASSERT_VALUE_BIG(h, s) \
do { if (CmpIsKeyValueBig(h,s)) DbgPrint("Big keys aren't supported!\n"); } while (0)
#else
#define ASSERT_VALUE_BIG(h, s) \
ASSERTMSG("Big keys not supported!\n", !CmpIsKeyValueBig(h, s));