Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2013 15:17:45 +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-9@freebsd.org
Subject:   svn commit: r252057 - stable/9/sys/boot/pc98/libpc98
Message-ID:  <201306211517.r5LFHj69025554@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Jun 21 15:17:44 2013
New Revision: 252057
URL: http://svnweb.freebsd.org/changeset/base/252057

Log:
  MFC 250333: Don't pad disk partition sizes with leading zeros.

Modified:
  stable/9/sys/boot/pc98/libpc98/biosdisk.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/boot/   (props changed)

Modified: stable/9/sys/boot/pc98/libpc98/biosdisk.c
==============================================================================
--- stable/9/sys/boot/pc98/libpc98/biosdisk.c	Fri Jun 21 12:02:09 2013	(r252056)
+++ stable/9/sys/boot/pc98/libpc98/biosdisk.c	Fri Jun 21 15:17:44 2013	(r252057)
@@ -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?201306211517.r5LFHj69025554>