diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-31 21:22:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-31 21:22:44 +0200 |
commit | 7d76f312889d54dcfe6fdde6eb055e890e7a615b (patch) | |
tree | 7ef1439ab07d28ca0a530d5643eec5bf0de33a40 /src/log.c | |
parent | 29db583471f019ed9939a90966b3e194a9560e7e (diff) |
log: fix shifting of facilities
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |