sys: DEBUGTEST_EX macro: fix

This commit is contained in:
Bill Zissimopoulos 2016-11-22 22:20:14 -08:00
parent 851a6145cd
commit d6d781355f

View File

@ -123,7 +123,7 @@ VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result);
#define DEBUGTEST(Percent) \
(0 == (fsp_debug & fsp_debug_dt) || DebugRandom() <= (Percent) * 0x7fff / 100)
#define DEBUGTEST_EX(C, Percent, Deflt) \
((C) ? DEBUGTEST(Percent) : (Deflt))
(0 != (fsp_debug & fsp_debug_dt) && (C) ? (DebugRandom() <= (Percent) * 0x7fff / 100) : (Deflt))
#else
#define DEBUGTEST(Percent) (TRUE)
#define DEBUGTEST_EX(C, Percent, Deflt) (Deflt)