From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 7 19:57:40 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 454921065672 for ; Tue, 7 Jun 2011 19:57:40 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.mail.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id BA4678FC1C for ; Tue, 7 Jun 2011 19:57:39 +0000 (UTC) Received: (qmail 27722 invoked by uid 0); 7 Jun 2011 19:57:38 -0000 Received: from 67.206.164.95 by rms-us001.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Tue, 07 Jun 2011 19:57:30 +0000 From: "Dieter BSD" Message-ID: <20110607195735.198110@gmx.com> MIME-Version: 1.0 To: hackers@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: wPeHfi4D33erJQ7YAmtnnswjL0tsZo1L Cc: Subject: Testing a change to printf(9) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2011 19:57:40 -0000 I've been working on fixing problems with printf(9), log(9) and related functions.  Today I tried converting printf(9) to write to the log rather than directly to the console, unless the log is not open, in which case the message is also sent to the console. Printf(...) is now the same as log(LOG_INFO, ...). I commented out the line in /etc/syslog.conf that sends some log messages to the console.  In multiuser mode, normal printfs go to log, but not the console, as expected. Bootup messages, shutdown messages, and panic messages all show up on the console as expected. Are there any other special cases to test?