[PATCH] erofs-utils: dump: drop unneeded spaces for alignment
Gao Xiang
hsiangkao at linux.alibaba.com
Thu Jan 5 19:56:01 AEDT 2023
I don't think they are useful other than leading to unnecessary
complexity.
Cc: Yue Hu <huyue2 at coolpad.com>
Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
---
dump/main.c | 56 +++++++++++++++++++++++++----------------------------
1 file changed, 26 insertions(+), 30 deletions(-)
diff --git a/dump/main.c b/dump/main.c
index bc4e028..f4f0f8d 100644
--- a/dump/main.c
+++ b/dump/main.c
@@ -536,24 +536,23 @@ static void erofsdump_file_statistic(void)
{
unsigned int i;
- fprintf(stdout, "Filesystem total file count: %lu\n",
- stats.files);
+ fprintf(stdout, "Filesystem total file count: %lu\n", stats.files);
for (i = 0; i < EROFS_FT_MAX; i++)
- fprintf(stdout, "Filesystem %s count: %lu\n",
+ fprintf(stdout, "Filesystem %s count: %lu\n",
file_category_types[i], stats.file_category_stat[i]);
stats.compress_rate = (double)(100 * stats.files_total_size) /
(double)(stats.files_total_origin_size);
- fprintf(stdout, "Filesystem compressed files: %lu\n",
- stats.compressed_files);
- fprintf(stdout, "Filesystem uncompressed files: %lu\n",
- stats.uncompressed_files);
- fprintf(stdout, "Filesystem total original file size: %lu Bytes\n",
- stats.files_total_origin_size);
- fprintf(stdout, "Filesystem total file size: %lu Bytes\n",
- stats.files_total_size);
- fprintf(stdout, "Filesystem compress rate: %.2f%%\n",
- stats.compress_rate);
+ fprintf(stdout, "Filesystem compressed files: %lu\n",
+ stats.compressed_files);
+ fprintf(stdout, "Filesystem uncompressed files: %lu\n",
+ stats.uncompressed_files);
+ fprintf(stdout, "Filesystem total original file size: %lu Bytes\n",
+ stats.files_total_origin_size);
+ fprintf(stdout, "Filesystem total file size: %lu Bytes\n",
+ stats.files_total_size);
+ fprintf(stdout, "Filesystem compress rate: %.2f%%\n",
+ stats.compress_rate);
}
static void erofsdump_print_statistic(void)
@@ -595,24 +594,22 @@ static void erofsdump_show_superblock(void)
char uuid_str[37] = "not available";
int i = 0;
- fprintf(stdout, "Filesystem magic number: 0x%04X\n",
- EROFS_SUPER_MAGIC_V1);
- fprintf(stdout, "Filesystem blocks: %llu\n",
- sbi.total_blocks | 0ULL);
- fprintf(stdout, "Filesystem inode metadata start block: %u\n",
- sbi.meta_blkaddr);
+ fprintf(stdout, "Filesystem magic number: 0x%04X\n",
+ EROFS_SUPER_MAGIC_V1);
+ fprintf(stdout, "Filesystem blocks: %llu\n",
+ sbi.total_blocks | 0ULL);
+ fprintf(stdout, "Filesystem inode metadata start block: %u\n",
+ sbi.meta_blkaddr);
fprintf(stdout, "Filesystem shared xattr metadata start block: %u\n",
- sbi.xattr_blkaddr);
- fprintf(stdout, "Filesystem root nid: %llu\n",
- sbi.root_nid | 0ULL);
+ sbi.xattr_blkaddr);
+ fprintf(stdout, "Filesystem root nid: %llu\n", sbi.root_nid | 0ULL);
if (erofs_sb_has_fragments())
- fprintf(stdout, "Filesystem packed nid: %llu\n",
+ fprintf(stdout, "Filesystem packed nid: %llu\n",
sbi.packed_nid | 0ULL);
- fprintf(stdout, "Filesystem inode count: %llu\n",
- sbi.inos | 0ULL);
- fprintf(stdout, "Filesystem created: %s",
- ctime(&time));
- fprintf(stdout, "Filesystem features: ");
+ fprintf(stdout, "Filesystem inode count: %llu\n",
+ sbi.inos | 0ULL);
+ fprintf(stdout, "Filesystem created: %s", ctime(&time));
+ fprintf(stdout, "Filesystem features: ");
for (; i < ARRAY_SIZE(feature_lists); i++) {
u32 feat = le32_to_cpu(feature_lists[i].compat ?
sbi.feature_compat :
@@ -623,8 +620,7 @@ static void erofsdump_show_superblock(void)
#ifdef HAVE_LIBUUID
uuid_unparse_lower(sbi.uuid, uuid_str);
#endif
- fprintf(stdout, "\nFilesystem UUID: %s\n",
- uuid_str);
+ fprintf(stdout, "\nFilesystem UUID: %s\n", uuid_str);
}
int main(int argc, char **argv)
--
2.24.4
More information about the Linux-erofs
mailing list