From owner-cvs-all@FreeBSD.ORG Sun Feb 8 15:08:54 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 3233916A4CE; Sun, 8 Feb 2004 15:08:54 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19F5443D1D; Sun, 8 Feb 2004 15:08:54 -0800 (PST) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i18N8r0B099708; Sun, 8 Feb 2004 15:08:53 -0800 (PST) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i18N8rtW099707; Sun, 8 Feb 2004 15:08:53 -0800 (PST) (envelope-from iedowse) Message-Id: <200402082308.i18N8rtW099707@repoman.freebsd.org> From: Ian Dowse Date: Sun, 8 Feb 2004 15:08:53 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: 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: Sun, 08 Feb 2004 23:08:54 -0000 iedowse 2004/02/08 15:08:53 PST FreeBSD src repository Modified files: sbin/dmesg dmesg.c Log: Further simplify the code for printing the message buffer: - Ensure that the buffer ends with "\n\0" to avoid special cases and allow the use of strtol(). - Use strvisx() on each complete line instead of character by character. Submitted by: bde MFC after: 1 week Revision Changes Path 1.22 +36 -33 src/sbin/dmesg/dmesg.c