Lines Matching refs:progress
38 struct ext2fs_numeric_progress_struct * progress, in ext2fs_numeric_progress_init() argument
55 memset(progress, 0, sizeof(*progress)); in ext2fs_numeric_progress_init()
57 progress->skip_progress++; in ext2fs_numeric_progress_init()
63 progress->max = max; in ext2fs_numeric_progress_init()
64 progress->log_max = int_log10(max); in ext2fs_numeric_progress_init()
74 struct ext2fs_numeric_progress_struct * progress, in ext2fs_numeric_progress_update() argument
81 if (progress->skip_progress) in ext2fs_numeric_progress_update()
88 printf("%*llu/%*llu", progress->log_max, val, in ext2fs_numeric_progress_update()
89 progress->log_max, progress->max); in ext2fs_numeric_progress_update()
90 fprintf(stdout, "%.*s", (2*progress->log_max)+1, backspaces); in ext2fs_numeric_progress_update()
94 struct ext2fs_numeric_progress_struct * progress, in ext2fs_numeric_progress_close() argument
99 fprintf(stdout, "%.*s", (2*progress->log_max)+1, spaces); in ext2fs_numeric_progress_close()
100 fprintf(stdout, "%.*s", (2*progress->log_max)+1, backspaces); in ext2fs_numeric_progress_close()