Early use of log() does not end up in kernel msg buffer

Adrian Chadd adrian at freebsd.org
Mon Apr 6 21:14:06 UTC 2015


On 6 April 2015 at 14:11, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> --------
> In message <2033248.Eu3RHS8lTG at ralph.baldwin.cx>, John Baldwin writes:
>
>>I think phk@ broke this back in 70239.  Before that the log() function did
>>this:
>>
>>log()
>>{
>>
>>       /* log to the msg buffer */
>>       kvprintf(fmt, msglogchar, ...);
>>
>>       if (!log_open) {
>>               /* log to console */
>>               kvprintf(fmt, putchar, ...);
>>       }
>>}
>>
>>I think your patch is fine unless phk@ (cc'd) has a reason for not wanting to
>>do this.
>
> The reason was systems not running syslog having slow serial consoles.

.. and that's still a thing, btw.



-adrian


More information about the freebsd-current mailing list