Date: Fri, 21 Jun 2013 15:30:18 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r252058 - in stable/8/sys/boot: i386/libi386 pc98/libpc98 Message-ID: <201306211530.r5LFUIvZ029261@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Fri Jun 21 15:30:18 2013 New Revision: 252058 URL: http://svnweb.freebsd.org/changeset/base/252058 Log: MFC 250333: Don't pad disk partition sizes with leading zeros. Modified: stable/8/sys/boot/i386/libi386/biosdisk.c stable/8/sys/boot/pc98/libpc98/biosdisk.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/boot/ (props changed) Modified: stable/8/sys/boot/i386/libi386/biosdisk.c ============================================================================== --- stable/8/sys/boot/i386/libi386/biosdisk.c Fri Jun 21 15:17:44 2013 (r252057) +++ stable/8/sys/boot/i386/libi386/biosdisk.c Fri Jun 21 15:30:18 2013 (r252058) @@ -349,7 +349,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); } Modified: stable/8/sys/boot/pc98/libpc98/biosdisk.c ============================================================================== --- stable/8/sys/boot/pc98/libpc98/biosdisk.c Fri Jun 21 15:17:44 2013 (r252057) +++ stable/8/sys/boot/pc98/libpc98/biosdisk.c Fri Jun 21 15:30:18 2013 (r252058) @@ -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?201306211530.r5LFUIvZ029261>