aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-03-20 16:41:59 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-03-20 16:49:24 -0700
commitc93d54a1867858f8b81e2df49fa43f4d7950b43d (patch)
tree21e6020e35b1fe1611a503b1b12e8f33ac730a8e /lib
parent3c160e7d111c4a9fcd54f30b944b6a260fb77998 (diff)
downloadandroid_external_f2fs-tools-c93d54a1867858f8b81e2df49fa43f4d7950b43d.tar.gz
android_external_f2fs-tools-c93d54a1867858f8b81e2df49fa43f4d7950b43d.tar.bz2
android_external_f2fs-tools-c93d54a1867858f8b81e2df49fa43f4d7950b43d.zip
mkfs.f2fs: show bytes for total_sectors
This patch shows correct information about total_sectors. 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 9e19e9b..7fd2550 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -497,8 +497,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",