From owner-svn-src-head@FreeBSD.ORG Tue May 7 18:08:50 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 44E9B6BC; Tue, 7 May 2013 18:08:50 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 37235911; Tue, 7 May 2013 18:08:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r47I8ofQ011848; Tue, 7 May 2013 18:08:50 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r47I8onG011847; Tue, 7 May 2013 18:08:50 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201305071808.r47I8onG011847@svn.freebsd.org> From: John Baldwin Date: Tue, 7 May 2013 18:08:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250333 - head/sys/boot/pc98/libpc98 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 18:08:50 -0000 Author: jhb Date: Tue May 7 18:08:49 2013 New Revision: 250333 URL: http://svnweb.freebsd.org/changeset/base/250333 Log: Don't pad disk partition sizes with leading zeros. This was already fixed in a different way by the new disk code used for other platforms. MFC after: 1 week Modified: head/sys/boot/pc98/libpc98/biosdisk.c Modified: head/sys/boot/pc98/libpc98/biosdisk.c ============================================================================== --- head/sys/boot/pc98/libpc98/biosdisk.c Tue May 7 13:46:22 2013 (r250332) +++ head/sys/boot/pc98/libpc98/biosdisk.c Tue May 7 18:08:49 2013 (r250333) @@ -296,7 +296,7 @@ display_size(uint64_t size) size /= 1024; unit = 'M'; } - sprintf(buf, "%.6ld%cB", (long)size, unit); + sprintf(buf, "%6ld%cB", (long)size, unit); return (buf); }