Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2002 10:10:04 -0700 (PDT)
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/43434: New option to 'dmesg' which allow to display or not old boot messages
Message-ID:  <200209301710.g8UHA4WP030817@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: Brooks Davis <brooks@one-eyed-alien.net>
To: Ruslan Ermilov <ru@FreeBSD.org>
Cc: Brooks Davis <brooks@one-eyed-alien.net>,
	bug-followup@FreeBSD.org
Subject: Re: bin/43434: New option to 'dmesg' which allow to display or not old boot messages
Date: Mon, 30 Sep 2002 10:04:07 -0700

 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 could
 > >  >       also be stored in /usr/include/msgbuf.h) dmesg.c is modified
 > >  >       and has a new option: -o, which when it is specified, displays
 > >  >       the full content of the message buffer, otherwise only the last
 > >  >       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 time
 > >  to commit it or something similar.
 > > =20
 > What's wrong with ``dmesg | tail -1''?
 
 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).
 
 -- Brooks
 
 --=20
 Any statement of the form "X is the one, true Y" is FALSE.
 PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

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?200209301710.g8UHA4WP030817>