summaryrefslogtreecommitdiff
path: root/src/shared/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/log.h')
-rw-r--r--src/shared/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/log.h b/src/shared/log.h
index 8eda7bf695..485f3fa0f6 100644
--- a/src/shared/log.h
+++ b/src/shared/log.h
@@ -92,7 +92,7 @@ noreturn void log_assert_failed_unreachable(
#define log_full_errno(level, error, ...) \
({ \
int _l = (level), _e = (error); \
- (log_get_max_level() >= _l) \
+ (log_get_max_level() >= LOG_PRI(_l)) \
? log_internal(_l, _e, __FILE__, __LINE__, __func__, __VA_ARGS__) \
: -abs(_e); \
})