From owner-freebsd-hackers Tue Sep 1 17:41:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA28608 for freebsd-hackers-outgoing; Tue, 1 Sep 1998 17:41:56 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA28597 for ; Tue, 1 Sep 1998 17:41:54 -0700 (PDT) (envelope-from tlambert@usr01.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id RAA06448; Tue, 1 Sep 1998 17:40:53 -0700 (MST) Received: from usr01.primenet.com(206.165.6.201) via SMTP by smtp01.primenet.com, id smtpd006410; Tue Sep 1 17:40:46 1998 Received: (from tlambert@localhost) by usr01.primenet.com (8.8.5/8.8.5) id RAA09710; Tue, 1 Sep 1998 17:40:44 -0700 (MST) From: Terry Lambert Message-Id: <199809020040.RAA09710@usr01.primenet.com> Subject: Re: default syslog priority for kernel messages To: archie@whistle.com (Archie Cobbs) Date: Wed, 2 Sep 1998 00:40:44 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <199809012223.PAA17824@bubba.whistle.com> from "Archie Cobbs" at Sep 1, 98 03:23:56 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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