From owner-cvs-all@FreeBSD.ORG Thu Sep 11 09:56:05 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B02810656D8; Thu, 11 Sep 2008 09:56:05 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D93138FC2A; Thu, 11 Sep 2008 09:56:03 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8B9u31a027281; Thu, 11 Sep 2008 09:56:03 GMT (envelope-from adrian@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8B9u3qN027280; Thu, 11 Sep 2008 09:56:03 GMT (envelope-from adrian@repoman.freebsd.org) Message-Id: <200809110956.m8B9u3qN027280@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to adrian@repoman.freebsd.org using -f From: Adrian Chadd Date: Thu, 11 Sep 2008 09:55:54 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/iostat iostat.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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, 11 Sep 2008 09:56:05 -0000 adrian 2008-09-11 09:55:54 UTC FreeBSD src repository Modified files: usr.sbin/iostat iostat.c Log: SVN rev 182927 on 2008-09-11 09:55:54Z by adrian Fix the device name spacing. The old logic padded the device name out but assumed the unit number was one digit long; this fails for things like SATA devices which (for me) begin at ad10. Assemble the full device name in a temporary buffer and then calcluate padding based on that string. Revision Changes Path 1.43 +5 -5 src/usr.sbin/iostat/iostat.c