This seems to stop syslog console messages looping. The problem

is that LOG_FAC doesn't do quite what you think it does.

PR:		24704
This commit is contained in:
David Malone 2001-02-04 15:16:08 +00:00
parent f590526d0a
commit 8bc588fa15
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72009

View File

@ -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 */