1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- squashfs-tools/mksquashfs.c
+++ squashfs-tools/mksquashfs.c
@@ -2570,19 +2570,19 @@
previous = current;
}
- printf("\r[");
+ fprintf(stderr, "\r[");
while (hashes --)
- putchar('=');
+ putc('=', stderr);
- putchar(rotate_list[rotate]);
+ putc(rotate_list[rotate], stderr);
while(spaces --)
- putchar(' ');
+ putc(' ', stderr);
- printf("] %*lld/%*lld", max_digits, current, max_digits, max);
- printf(" %3lld%%", current * 100 / max);
- fflush(stdout);
+ fprintf(stderr, "] %*lld/%*lld", max_digits, current, max_digits, max);
+ fprintf(stderr, " %3lld%%", current * 100 / max);
+ fflush(stderr);
}
|