summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-05-07 18:08:49 +0000
committerjhb <jhb@FreeBSD.org>2013-05-07 18:08:49 +0000
commit15f6025f5319fecf3f9a6426603fb2fd07694681 (patch)
tree7444eee91ce622bf9aa0967d2c825d78f8dc1bf6 /sys/boot
parent4f560aa80913612caa2f42a878e2dcaad413eecf (diff)
downloadFreeBSD-src-15f6025f5319fecf3f9a6426603fb2fd07694681.zip
FreeBSD-src-15f6025f5319fecf3f9a6426603fb2fd07694681.tar.gz
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
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/pc98/libpc98/biosdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/pc98/libpc98/biosdisk.c b/sys/boot/pc98/libpc98/biosdisk.c
index dc98145..572e90c 100644
--- a/sys/boot/pc98/libpc98/biosdisk.c
+++ b/sys/boot/pc98/libpc98/biosdisk.c
@@ -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);
}
OpenPOWER on IntegriCloud