diff options
author | David Sterba <dsterba@suse.com> | 2017-01-30 10:33:01 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:46 +0100 |
commit | c0acc29c990cbf6e1ea0a2d7565984b0318584a2 (patch) | |
tree | 02a4a2db8277661bc466f71143138a6d28aaf131 /convert/main.c | |
parent | 0a5d16eca7167af06c896df64a2d301a6af4c6b4 (diff) |
btrfs-progs: convert: use wider types types for inode counts for progress reports
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert/main.c')
-rw-r--r-- | convert/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/convert/main.c b/convert/main.c index 2f6ec428..5a2da312 100644 --- a/convert/main.c +++ b/convert/main.c @@ -55,14 +55,15 @@ static void *print_copied_inodes(void *p) { struct task_ctx *priv = p; const char work_indicator[] = { '.', 'o', 'O', 'o' }; - uint32_t count = 0; + u64 count = 0; task_period_start(priv->info, 1000 /* 1s */); while (1) { count++; - printf("copy inodes [%c] [%10d/%10d]\r", - work_indicator[count % 4], priv->cur_copy_inodes, - priv->max_copy_inodes); + printf("copy inodes [%c] [%10llu/%10llu]\r", + work_indicator[count % 4], + (unsigned long long)priv->cur_copy_inodes, + (unsigned long long)priv->max_copy_inodes); fflush(stdout); task_period_wait(priv->info); } |