From 396643e2cbf05cdc3d2a8fa34cf2d4f8cc1d8441 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 16 Jan 2008 16:52:45 +0200 Subject: ubi-utils: fix bytes output Fix incorrect output of ubinfo like "Amount of available logical eraseblocks: 00 bytes)" which should look like "Amount of available logical eraseblocks: 0 (0 bytes)" Signed-off-by: Artem Bityutskiy --- ubi-utils/src/ubinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ubi-utils/src/ubinfo.c') diff --git a/ubi-utils/src/ubinfo.c b/ubi-utils/src/ubinfo.c index 35c70a1..247e2eb 100644 --- a/ubi-utils/src/ubinfo.c +++ b/ubi-utils/src/ubinfo.c @@ -251,7 +251,7 @@ static int print_dev_info(libubi_t libubi, int dev_num, int all) ubiutils_print_bytes(dev_info.total_bytes, 0); printf(")\n"); - printf("Amount of available logical eraseblocks: %d", dev_info.avail_lebs); + printf("Amount of available logical eraseblocks: %d (", dev_info.avail_lebs); ubiutils_print_bytes(dev_info.avail_bytes, 0); printf(")\n"); -- cgit v1.2.3