diff options
author | relan <relan@users.noreply.github.com> | 2010-11-08 17:16:10 +0000 |
---|---|---|
committer | relan <relan@users.noreply.github.com> | 2015-08-24 08:26:12 +0300 |
commit | 93f9ef643f18ecf228eb773252e5d7519e13a7d6 (patch) | |
tree | 523baba09b66745c2a1b3e94a4d96eebda998c16 /fsck | |
parent | f9fba39b37d1040533d5b946826e63fbce7f2f21 (diff) | |
download | android_external_exfat-93f9ef643f18ecf228eb773252e5d7519e13a7d6.tar.gz android_external_exfat-93f9ef643f18ecf228eb773252e5d7519e13a7d6.tar.bz2 android_external_exfat-93f9ef643f18ecf228eb773252e5d7519e13a7d6.zip |
Clean up FS info printing in exfatfsck.
Diffstat (limited to 'fsck')
-rw-r--r-- | fsck/main.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fsck/main.c b/fsck/main.c index 8724864..27ced56 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -39,15 +39,13 @@ static uint64_t bytes2mb(uint64_t bytes) static void sbck(const struct exfat* ef) { - const uint32_t block_size = (1 << ef->sb->block_bits); /* in bytes */ - const uint32_t cluster_size = CLUSTER_SIZE(*ef->sb); /* in bytes */ const uint64_t total = (uint64_t) le32_to_cpu(ef->sb->cluster_count) * - cluster_size; + CLUSTER_SIZE(*ef->sb); - printf("Block size %8u bytes\n", block_size); - printf("Cluster size %8u bytes\n", cluster_size); - printf("Total space %8"PRIu64" MB\n", bytes2mb(total)); - printf("Used space %8hhu%%\n", ef->sb->allocated_percent); + printf("Block size %8u bytes\n", BLOCK_SIZE(*ef->sb)); + printf("Cluster size %8u bytes\n", CLUSTER_SIZE(*ef->sb)); + printf("Total space %8"PRIu64" MB\n", bytes2mb(total)); + printf("Used space %8hhu%%\n", ef->sb->allocated_percent); } static void nodeck(struct exfat* ef, struct exfat_node* node) |