From 236bd1a03ee8619fd22503af2416828e6f228fec Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 11 Jan 2015 03:13:46 +0100 Subject: log: fix log_full_errno() with custom facilities Make sure to extract the log-priority when comparing against max-log-level, otherwise, we will always drop those messages. This fixes bus-proxyd to properly send warnings on policy blocks. Signed-off-by: Anthony G. Basile --- src/shared/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') 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); \ }) -- cgit v1.2.3-54-g00ecf