summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-04-24 18:31:28 +0200
committerDavid Sterba <dsterba@suse.cz>2014-10-10 18:25:31 +0200
commitdb5d44d132492988cd59d0dddce9ef9260da35fe (patch)
tree66e142bb23095025193010528ce6db9dcde304dc
parent1f49fbf24c5a12d33a1d3d57fdb86b2728342a34 (diff)
btrfs-progs: print B for bytes
This arguably helps parsers. Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 40b8f1a3..803fb89f 100644
--- a/utils.c
+++ b/utils.c
@@ -1294,7 +1294,7 @@ out:
return ret;
}
-static char *size_strs[] = { "", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"};
+static char *size_strs[] = { "B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"};
int pretty_size_snprintf(u64 size, char *str, size_t str_bytes)
{
int num_divs = 0;