aboutsummaryrefslogtreecommitdiff
path: root/lib/common/statistics.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-18 13:48:17 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-18 16:23:48 +0100
commit3843ff0f632ff6a790d49b4895d7fefc1cd385ca (patch)
tree2c5afeb661e3f9d234fc0f2ce1b10268e55c76f1 /lib/common/statistics.c
parente438d7f1b37f2d8b29ae028b15f95442e48dd9e7 (diff)
Convert the remaining size_t printf format specifiers in libcommon
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/statistics.c')
-rw-r--r--lib/common/statistics.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/common/statistics.c b/lib/common/statistics.c
index a209461..7bf8fca 100644
--- a/lib/common/statistics.c
+++ b/lib/common/statistics.c
@@ -75,14 +75,17 @@ void sqfs_print_statistics(sqfs_super_t *super, data_writer_stats_t *stats)
}
fputs("---------------------------------------------------\n", stdout);
- printf("Input files processed: %zu\n", stats->file_count);
- printf("Data blocks actually written: %zu\n", stats->blocks_written);
- printf("Fragment blocks written: %zu\n", stats->frag_blocks_written);
- printf("Duplicate data blocks omitted: %zu\n", stats->duplicate_blocks);
- printf("Sparse blocks omitted: %zu\n", stats->sparse_blocks);
- printf("Fragments actually written: %zu\n", stats->frag_count);
- printf("Duplicated fragments omitted: %zu\n", stats->frag_dup);
+ printf("Input files processed: " PRI_SZ"\n", stats->file_count);
+ printf("Data blocks actually written: " PRI_SZ "\n",
+ stats->blocks_written);
+ printf("Fragment blocks written: " PRI_SZ "\n",
+ stats->frag_blocks_written);
+ printf("Duplicate data blocks omitted: " PRI_SZ "\n",
+ stats->duplicate_blocks);
+ printf("Sparse blocks omitted: " PRI_SZ "\n", stats->sparse_blocks);
+ printf("Fragments actually written: " PRI_SZ "\n", stats->frag_count);
+ printf("Duplicated fragments omitted: " PRI_SZ"\n", stats->frag_dup);
printf("Total number of inodes: %u\n", super->inode_count);
printf("Number of unique group/user IDs: %u\n", super->id_count);
- printf("Data compression ratio: %zu%%\n", ratio);
+ printf("Data compression ratio: " PRI_SZ "%%\n", ratio);
}