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

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Apr 6 21:11:30 UTC 2015


--------
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.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list