From 86b1a432b74285db0096fdd4894626cb26773eeb Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 24 Apr 2014 18:31:28 +0200 Subject: [PATCH 34/42] btrfs-progs: print B for bytes This arguably helps parsers. Signed-off-by: David Sterba --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index ca150404ea6f..159abf8bd0e4 100644 --- a/utils.c +++ b/utils.c @@ -1252,7 +1252,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; -- 1.9.0