From owner-freebsd-questions Mon May 14 9:51:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 403B337B42C for ; Mon, 14 May 2001 09:51:48 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 23687 invoked by uid 100); 14 May 2001 16:51:47 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15104.3363.384718.498063@guru.mired.org> Date: Mon, 14 May 2001 11:51:47 -0500 To: "robinson" Cc: questions@freebsd.org Subject: /var/run/dmesg.boot (was: Hello) In-Reply-To: <6252147@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG robinson types: > This is a multi-part message in MIME format. > ------=_NextPart_000_001F_01C0DC56.95D905A0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable First, please choose subject lines that are relevant. Second, please send only plain text to the list, not HTML and not both. > I want to ask a silly question. My computer runs Freebsd 4.2, when = > booting system, It displays many booting messages and writes same = > messages to the file /var/run/dmesg.boot.=20 > Why one printf statement can do that two works?=20 I'm not sure what the question is. If you're asking how both of those happen, it's because kernel messages are saved in an internal buffer, and can be dumped later. See the dmesg man page for information on how to dump them, and the /etc/rc script for how /var/run/dmesg.boot gets created. If you're asking why we do both, the second was presumably added to guarantee you could always recover the boot dmesg, no matter what else has happened on the system. Robinson > > ------=_NextPart_000_001F_01C0DC56.95D905A0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > > charset=3Diso-8859-1"> > > > > >
Hello,
>
 
>
I want to ask a silly question. My = > computer runs=20 > Freebsd 4.2, when booting system, It displays many booting messages = > and =20 > writes same messages to the file /var/run/dmesg.boot.
>
Why one printf statement can do that = > two=20 > works? 
>
 
>
 
>
Robinson
> > ------=_NextPart_000_001F_01C0DC56.95D905A0-- > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Mike Meyer http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message