diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-03-20 16:41:59 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-24 11:41:05 -0700 |
commit | eb38acb05d2e6f85a4e4bc6445692b9a2461b54d (patch) | |
tree | ed4aff6bb690e9a8699d8899ebce2d2310492b9a /lib | |
parent | 194f8cb7c8a2efdb7d9f054aa3abd1f3ba116ea9 (diff) | |
download | android_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.c | 4 |
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", |