diff options
author | grog <grog@FreeBSD.org> | 2000-12-20 05:07:36 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2000-12-20 05:07:36 +0000 |
commit | 8558894ebc97236f1e51f021ece9e532e9880826 (patch) | |
tree | 21effd6c83aea782b9e9ff7f13c14db3f3f9acfc /sbin/vinum/list.c | |
parent | acdbf93b97dfb2f5d849d378554645970cf267a1 (diff) | |
download | FreeBSD-src-8558894ebc97236f1e51f021ece9e532e9880826.zip FreeBSD-src-8558894ebc97236f1e51f021ece9e532e9880826.tar.gz |
roughlength: Use correct format strings.
Diffstat (limited to 'sbin/vinum/list.c')
-rw-r--r-- | sbin/vinum/list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c index 6ae148e..e901d68 100644 --- a/sbin/vinum/list.c +++ b/sbin/vinum/list.c @@ -86,13 +86,13 @@ roughlength(int64_t bytes, int lj) static char description[16]; if (bytes > (int64_t) MEGABYTE * 10000) /* gigabytes */ - sprintf(description, lj ? "%d GB" : "%10d GB", bytes / GIGABYTE); + sprintf(description, lj ? "%lld GB" : "%10d GB", bytes / GIGABYTE); else if (bytes > KILOBYTE * 10000) /* megabytes */ - sprintf(description, lj ? "%d MB" : "%10d MB", bytes / MEGABYTE); + sprintf(description, lj ? "%lld MB" : "%10d MB", bytes / MEGABYTE); else if (bytes > 10000) /* kilobytes */ - sprintf(description, lj ? "%d kB" : "%10d kB", bytes / KILOBYTE); + sprintf(description, lj ? "%lld kB" : "%10d kB", bytes / KILOBYTE); else /* bytes */ - sprintf(description, lj ? "%d B" : "%10d B", bytes); + sprintf(description, lj ? "%lld B" : "%10d B", bytes); return description; } |