summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
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 4ec6b73888..95c27656b7 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;