• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:progress

2  * progress.c - Numeric progress meter
7 * %Begin-Header%
10 * %End-Header%
38 struct ext2fs_numeric_progress_struct * progress, in ext2fs_numeric_progress_init() argument
43 * progress-related messages, whereas the SKIP_PROGRESS in ext2fs_numeric_progress_init()
47 if (!(fs->flags & EXT2_FLAG_PRINT_PROGRESS)) in ext2fs_numeric_progress_init()
50 memset(spaces, ' ', sizeof(spaces)-1); in ext2fs_numeric_progress_init()
51 spaces[sizeof(spaces)-1] = 0; in ext2fs_numeric_progress_init()
52 memset(backspaces, '\b', sizeof(backspaces)-1); in ext2fs_numeric_progress_init()
53 backspaces[sizeof(backspaces)-1] = 0; in ext2fs_numeric_progress_init()
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
79 if (!(fs->flags & EXT2_FLAG_PRINT_PROGRESS)) in ext2fs_numeric_progress_update()
81 if (progress->skip_progress) in ext2fs_numeric_progress_update()
88 printf("%*llu/%*llu", progress->log_max, (unsigned long long) val, in ext2fs_numeric_progress_update()
89 progress->log_max, (unsigned long long) 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
97 if (!(fs->flags & EXT2_FLAG_PRINT_PROGRESS)) in ext2fs_numeric_progress_close()
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()