Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 1998 15:23:56 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   default syslog priority for kernel messages
Message-ID:  <199809012223.PAA17824@bubba.whistle.com>

next 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(). ]

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

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?199809012223.PAA17824>