Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 1998 00:40:44 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        archie@whistle.com (Archie Cobbs)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: default syslog priority for kernel messages
Message-ID:  <199809020040.RAA09710@usr01.primenet.com>
In-Reply-To: <199809012223.PAA17824@bubba.whistle.com> from "Archie Cobbs" at Sep 1, 98 03:23:56 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> In syslogd.c, the default priority for messages from the kernel is
> "critical":
> 
>   #define DEFSPRI         (LOG_KERN|LOG_CRIT)
> 
> It seems that in practice, this is not really appropriate.
> Only rarely are kernel-generated messages truly critical.
> 
> Would anyone object if this were changed to be NOTICE instead?
> 
> [ It seems like the real solution is to change all the kernel code
>   that uses "printf(...)" to use "log(LOG_XXX, ...)" instead, where
>   XXX is the appropriate priority for that particular message (anyone
>   interested in a mini-project?? :-)
> 
>   IMHO, printf() in the kernel should be deprecated in favor of log(). ]

The only problem is that it's possible to printf from the kernel
without logging, and it may frequently be desirable to send a message
to the console without logging it.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809020040.RAA09710>