Date: Thu, 5 Feb 2004 13:07:50 -0800 (PST) From: Ian Dowse <iedowse@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/dmesg dmesg.c Message-ID: <200402052107.i15L7oxj050027@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2004/02/05 13:07:50 PST
FreeBSD src repository
Modified files:
sbin/dmesg dmesg.c
Log:
Don't print the oldest line in the message buffer if the buffer is
full, since that line is almost always incomplete. Make the parsing
of <%d> lines more strict.
Also simplify the logic a little:
- Start off by making the buffer linear so that we don't have to
deal with it wrapping around (suggested by bde).
- Process line by line rather than byte at a time.
Revision Changes Path
1.21 +54 -51 src/sbin/dmesg/dmesg.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402052107.i15L7oxj050027>
