summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-01-11 03:13:46 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-01-11 03:16:01 +0100
commit24b759c5d79c1a4993c05c1ef7f44f9ff6d7f463 (patch)
treed71acce6302346d0280cbf00ce067c055a89a240
parent1325ec4280dd3f00f4879c5feadd524f7ba52f7e (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.
-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 2b6971f248..d15d7c8f92 100644
--- a/src/shared/log.h
+++ b/src/shared/log.h
@@ -158,7 +158,7 @@ void log_assert_failed_return(
#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); \
})