From eb38acb05d2e6f85a4e4bc6445692b9a2461b54d Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Fri, 20 Mar 2015 16:41:59 -0700 Subject: mkfs.f2fs: show bytes for total_sectors This patch shows correct information about total_sectors. Change-Id: Ic3c258fa806a66a0b19aefad4a1963be0cae7f77 Signed-off-by: Jaegeuk Kim --- lib/libf2fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libf2fs.c b/lib/libf2fs.c index 1792d68..29c5a41 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -546,8 +546,8 @@ int f2fs_get_device_info(struct f2fs_configuration *c) } MSG(0, "Info: sector size = %u\n", c->sector_size); - MSG(0, "Info: total sectors = %"PRIu64" (in %u bytes)\n", - c->total_sectors, c->sector_size); + MSG(0, "Info: total sectors = %"PRIu64" (%"PRIu64" MB)\n", + c->total_sectors, c->total_sectors >> 11); if (c->total_sectors < (F2FS_MIN_VOLUME_SIZE / c->sector_size)) { MSG(0, "Error: Min volume size supported is %d\n", -- cgit v1.2.3