From owner-cvs-all Fri Feb 25 12:57:42 2000 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 33A6937B939; Fri, 25 Feb 2000 12:57:29 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id IAA24434; Sat, 26 Feb 2000 08:01:06 +1100 Date: Sat, 26 Feb 2000 07:56:32 +1100 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Poul-Henning Kamp Cc: "Jordan K. Hubbard" , Peter Wemm , Robert Watson , "Jordan K. Hubbard" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern init_main.c In-Reply-To: <5730.951509761@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Fri, 25 Feb 2000, Poul-Henning Kamp wrote: > In message <96412.951509574@zippy.cdrom.com>, "Jordan K. Hubbard" writes: > >I thought that was no larger than what syscons itself would display on > >scroll-back. > > No, this is the exact same thing dmesg will produce as far as I know. No, dmesg discards syslog sequences and NUL characters, and passes each line through vis(3), while the sysctl just uncircularises the message buffer and copies it out. NULs occur at the start of the sysctl(3) output unless buffer has wrapped around, so the sysctl(1) output normally doesn't show anything; you have to use `sysctl -b machdep.msbuf' to see all the sysctl(3) output. dmesg and the sysctl have different races when the message buffer changes underneath them. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message