chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1325ec4
)
log: fix log_full_errno() with custom facilities
author
David Herrmann
<dh.herrmann@gmail.com>
Sun, 11 Jan 2015 02:13:46 +0000
(
03:13
+0100)
committer
David Herrmann
<dh.herrmann@gmail.com>
Sun, 11 Jan 2015 02:16:01 +0000
(
03:16
+0100)
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.
src/shared/log.h
patch
|
blob
|
history
diff --git
a/src/shared/log.h
b/src/shared/log.h
index 2b6971f248e79209e4c9d072c451c5b7d06bf0d1..d15d7c8f92b848c63e80ddea4987da2ce941d98d 100644
(file)
--- 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); \
})