diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 09a150de70d1..dc017acc4608 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -710,7 +710,7 @@ printsys(p) pri = 10 * pri + (*p - '0'); if (*p == '>') ++p; - if (LOG_FAC(pri) == LOG_CONSOLE) + if ((pri & LOG_FACMASK) == LOG_CONSOLE) flags |= IGN_CONS; } else { /* kernel printf's come out on console */