diff options
Diffstat (limited to 'lib/common/statistics.c')
-rw-r--r-- | lib/common/statistics.c | 19 |
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); } |