Macro hygiene

This commit is contained in:
Eelco Dolstra 2020-11-09 14:14:11 +01:00
parent 05d9442f68
commit e224c16d28

View File

@ -178,8 +178,8 @@ extern Verbosity verbosity; /* suppress msgs > this */
lightweight status messages. */
#define logErrorInfo(level, errorInfo...) \
do { \
if (level <= nix::verbosity) { \
logger->logEI(level, errorInfo); \
if ((level) <= nix::verbosity) { \
logger->logEI((level), errorInfo); \
} \
} while (0)