aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/logging.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-11-09 14:14:11 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-01 13:43:33 +0100
commite224c16d28be738b260d9d15d0503da3febf99de (patch)
treeb6d813997c1913bb2ae24ec49064395fbddd4f06 /src/libutil/logging.hh
parent05d9442f68ba906ae50c12deab63fc1b9836b149 (diff)
Macro hygiene
Diffstat (limited to 'src/libutil/logging.hh')
-rw-r--r--src/libutil/logging.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh
index cd0cb64c5..ff17056f4 100644
--- a/src/libutil/logging.hh
+++ b/src/libutil/logging.hh
@@ -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)