summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-31 21:22:44 +0200
committerLennart Poettering <lennart@poettering.net>2011-03-31 21:22:44 +0200
commit7d76f312889d54dcfe6fdde6eb055e890e7a615b (patch)
tree7ef1439ab07d28ca0a530d5643eec5bf0de33a40 /src/log.c
parent29db583471f019ed9939a90966b3e194a9560e7e (diff)
log: fix shifting of facilities
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index 4ec6b7388..95c27656b 100644
--- a/src/log.c
+++ b/src/log.c
@@ -378,8 +378,8 @@ static int log_dispatch(
return 0;
/* Patch in LOG_DAEMON facility if necessary */
- if (LOG_FAC(level) == 0)
- level = LOG_MAKEPRI(LOG_DAEMON, LOG_PRI(level));
+ if ((level & LOG_FACMASK) == 0)
+ level = LOG_DAEMON | LOG_PRI(level);
do {
char *e;