summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-01-11 03:13:46 +0100
committerAnthony G. Basile <blueness@gentoo.org>2015-01-17 09:52:44 -0500
commit236bd1a03ee8619fd22503af2416828e6f228fec (patch)
tree2c6f536668ca4b652e0066558a58b5bb076c0875 /src
parenta9421a42aaae69d59e63c6cf499aee9f4fc4f29c (diff)
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 <blueness@gentoo.org>
Diffstat (limited to 'src')
-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); \
})