cvs commit: src/sbin/dmesg dmesg.c

Ian Dowse iedowse at FreeBSD.org
Thu Feb 5 13:08:07 PST 2004


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


More information about the cvs-src mailing list