Date: Tue, 1 Oct 2002 00:40:04 -0700 (PDT) From: Ruslan Ermilov <ru@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/43434: New option to 'dmesg' which allow to display or not old boot messages Message-ID: <200210010740.g917e4bc086569@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/43434; it has been noted by GNATS. From: Ruslan Ermilov <ru@FreeBSD.org> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: bug-followup@FreeBSD.org Subject: Re: bin/43434: New option to 'dmesg' which allow to display or not old boot messages Date: Tue, 1 Oct 2002 10:36:13 +0300 --R3G7APHDIzY6R/pk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 30, 2002 at 10:04:07AM -0700, Brooks Davis wrote: > On Mon, Sep 30, 2002 at 09:53:43AM +0300, Ruslan Ermilov wrote: > > On Fri, Sep 27, 2002 at 12:00:20PM -0700, Brooks Davis wrote: > > > On Fri, Sep 27, 2002 at 08:36:52PM +0200, AurIlien Nephtali wrote: > > > >=20 > > > > Some times it could be usefull to display only the last boot > > > > message (ie: when grep'ing). The attached patch modifies > > > > sys/kern/subr_prf.c and dmesg.c (and the also the manual). = It > > > > adds a tag (---<<<BOOT>>>---) at the begining of each boot > > > > message (the tag macro is stored in sys/sys/msgbuf.h and cou= ld > > > > also be stored in /usr/include/msgbuf.h) dmesg.c is modified > > > > and has a new option: -o, which when it is specified, displa= ys > > > > the full content of the message buffer, otherwise only the l= ast > > > > message is displayed). This patch has been tested (by me :p) > > > > without any troubles on -CURRENT. > > > =20 > > > This was my propsed solution to this annoyance so I agree with it. := ) I > > > haven't had time to test and fully review this change so I asked > > > AurIlien to put it in a PR in hopes that someone else will have to t= ime > > > to commit it or something similar. > > > =20 > > What's wrong with ``dmesg | tail -1''? >=20 > It does nothing like what this patch does? That just shows the last > line of dmesg, this cause dmesg to only show messages from this boot > unless you specificly ask for saved messages (assuming they exist). >=20 Then this would be indeed a useful option. The "last boot message" did not sound to me like the "messages from the last boot". :-) Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --R3G7APHDIzY6R/pk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9mVBtUkv4P6juNwoRArFfAJsEX3Ysp69IM/lKgVvFBnfMbekDtQCfd4j/ PwMMRNPd+bM9WyPoKgJDxEo= =HoMI -----END PGP SIGNATURE----- --R3G7APHDIzY6R/pk-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210010740.g917e4bc086569>