Date: Tue, 7 May 2013 18:08:50 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250333 - head/sys/boot/pc98/libpc98 Message-ID: <201305071808.r47I8onG011847@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305071808.r47I8onG011847>