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

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 06 Apr 2015 21:11:21 +0000
--------
In message <2033248.Eu3RHS8lTG_at_ralph.baldwin.cx>, John Baldwin writes:

>I think phk_at_ 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_at_ (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.
Received on Mon Apr 06 2015 - 19:11:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:56 UTC