Date: Fri, 27 Mar 2015 09:05:24 -0400 From: Eric van Gyzen <vangyzen@FreeBSD.org> To: Eric Badger <eric@badgerio.us>, freebsd-current@freebsd.org Subject: Re: Early use of log() does not end up in kernel msg buffer Message-ID: <55155594.3000201@FreeBSD.org> In-Reply-To: <5514CC6D.3020607@badgerio.us> References: <5514CC6D.3020607@badgerio.us>
next in thread | previous in thread | raw e-mail | index | archive | help
On 03/26/2015 23:20, Eric Badger wrote: > Using log(9) when no process is reading the log results in the message > going only to the console (contrast with printf(9), which goes to the > console and to the kernel message buffer in this case). I believe it is > truer to the semantics of logging for messages to *always* go to the > message buffer (where they can eventually be collected and in fact put > into a logfile). I therefore propose the attached patch, which sends > log(9) to the message buffer always, and to the console only if no one > has yet opened the log. This makes sense to me. Since I'm new here, I'll wait for others to comment. Eric
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55155594.3000201>