From owner-cvs-src@FreeBSD.ORG Mon Dec 8 04:18:13 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8FA616A4CE; Mon, 8 Dec 2003 04:18:13 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5718243FE5; Mon, 8 Dec 2003 04:18:12 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id B8E6D5310; Mon, 8 Dec 2003 13:18:10 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id EDDB65309; Mon, 8 Dec 2003 13:18:03 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 9651433C6A; Mon, 8 Dec 2003 13:18:03 +0100 (CET) To: Bruce Evans References: <200312080757.hB87vvTA048651@repoman.freebsd.org> <20031208225505.H6229@gamplex.bde.org> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 08 Dec 2003 13:18:03 +0100 In-Reply-To: <20031208225505.H6229@gamplex.bde.org> (Bruce Evans's message of "Mon, 8 Dec 2003 23:13:53 +1100 (EST)") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no version=2.60 cc: cvs-src@FreeBSD.org cc: Marcel Moolenaar cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/vmstat vmstat.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2003 12:18:14 -0000 Bruce Evans writes: > for (i =3D 0; i < nintr; i++) { > clen =3D strlen(tintrname); > + > + /* Work around bogus padding in new interrupt code. */ > + while (clen > 0 && tintrname[clen - 1] =3D=3D ' ') > + clen--; > + > if (clen > istrnamlen) > istrnamlen =3D clen; > tintrname +=3D clen + 1; > } This is wrong. You can't possibly have tested it. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no