]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't print the oldest line in the message buffer if the buffer is
authoriedowse <iedowse@FreeBSD.org>
Thu, 5 Feb 2004 21:07:50 +0000 (21:07 +0000)
committeriedowse <iedowse@FreeBSD.org>
Thu, 5 Feb 2004 21:07:50 +0000 (21:07 +0000)
commit71d09d9016c9cd3b8ae04e05a91f46771d0878dc
tree5ad08047a115b18f1e45f6fd1851a664af4f6082
parent85386c7cf693d54b97291de5ede43e750dd30946
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.
sbin/dmesg/dmesg.c