From owner-cvs-all@FreeBSD.ORG Thu Feb 5 15:29:34 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C555F16A4CE; Thu, 5 Feb 2004 15:29:34 -0800 (PST) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C95E43D31; Thu, 5 Feb 2004 15:29:33 -0800 (PST) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.10/8.12.10) with ESMTP id i15NTKcj099573; Fri, 6 Feb 2004 02:29:20 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Fri, 6 Feb 2004 02:29:20 +0300 (MSK) From: Dmitry Morozovsky To: Ian Dowse In-Reply-To: <200402052107.i15L7oxj050027@repoman.freebsd.org> Message-ID: <20040206022800.W99338@woozle.rinet.ru> References: <200402052107.i15L7oxj050027@repoman.freebsd.org> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sbin/dmesg dmesg.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 23:29:34 -0000 On Thu, 5 Feb 2004, Ian Dowse wrote: ID> iedowse 2004/02/05 13:07:50 PST ID> ID> FreeBSD src repository ID> ID> Modified files: ID> sbin/dmesg dmesg.c ID> Log: ID> Don't print the oldest line in the message buffer if the buffer is ID> full, since that line is almost always incomplete. Make the parsing ID> of <%d> lines more strict. ID> ID> Also simplify the logic a little: ID> - Start off by making the buffer linear so that we don't have to ID> deal with it wrapping around (suggested by bde). ID> - Process line by line rather than byte at a time. Any plans of MFSing this? We encounter this problem with every machine with IPFW logging turned on (at least with daily security mail reports). Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------