aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-03-20 16:41:59 -0700
committerSteve Kondik <steve@cyngn.com>2016-08-24 11:41:05 -0700
commiteb38acb05d2e6f85a4e4bc6445692b9a2461b54d (patch)
treeed4aff6bb690e9a8699d8899ebce2d2310492b9a /lib
parent194f8cb7c8a2efdb7d9f054aa3abd1f3ba116ea9 (diff)
downloadandroid_external_f2fs-tools-eb38acb05d2e6f85a4e4bc6445692b9a2461b54d.tar.gz
android_external_f2fs-tools-eb38acb05d2e6f85a4e4bc6445692b9a2461b54d.tar.bz2
android_external_f2fs-tools-eb38acb05d2e6f85a4e4bc6445692b9a2461b54d.zip
mkfs.f2fs: show bytes for total_sectors
This patch shows correct information about total_sectors. Change-Id: Ic3c258fa806a66a0b19aefad4a1963be0cae7f77 Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libf2fs.c4
1 files changed, 2 insertions, 2 deletions
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",