From owner-freebsd-bugs Tue Oct 1 0:40: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C52A37B401 for ; Tue, 1 Oct 2002 00:40:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB28043E77 for ; Tue, 1 Oct 2002 00:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g917e4Co086570 for ; Tue, 1 Oct 2002 00:40:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g917e4bc086569; Tue, 1 Oct 2002 00:40:04 -0700 (PDT) Date: Tue, 1 Oct 2002 00:40:04 -0700 (PDT) Message-Id: <200210010740.g917e4bc086569@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/43434: New option to 'dmesg' which allow to display or not old boot messages Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/43434; it has been noted by GNATS. From: Ruslan Ermilov To: Brooks Davis 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 (---<<>>---) 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