From owner-freebsd-hackers Tue Sep 1 19:16:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA15380 for freebsd-hackers-outgoing; Tue, 1 Sep 1998 19:16:47 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA15373 for ; Tue, 1 Sep 1998 19:16:44 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id TAA20791; Tue, 1 Sep 1998 19:15:43 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma020789; Tue Sep 1 19:15:31 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id TAA00488; Tue, 1 Sep 1998 19:15:31 -0700 (PDT) From: Archie Cobbs Message-Id: <199809020215.TAA00488@bubba.whistle.com> Subject: Re: default syslog priority for kernel messages In-Reply-To: <199809020040.RAA09710@usr01.primenet.com> from Terry Lambert at "Sep 2, 98 00:40:44 am" To: tlambert@primenet.com (Terry Lambert) Date: Tue, 1 Sep 1998 19:15:31 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] 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 Terry Lambert writes: > > 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. So then kill syslogd. Here is the comment in the code: /* * Log writes to the log buffer, and guarantees not to sleep (so can be * called by interrupt routines). If there is no process reading the * log yet, it writes to the console also. */ -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