diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-06 21:53:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-06 21:53:09 +0200 |
commit | 19ced5c4253bc154aa499a72b6343e01245c92c0 (patch) | |
tree | c1c148612896e748749ce882ed25ad5ffd74418c /debianutils | |
parent | 5f3303712ef483d270097cae4ba0a559b1056121 (diff) | |
download | busybox-w32-19ced5c4253bc154aa499a72b6343e01245c92c0.tar.gz busybox-w32-19ced5c4253bc154aa499a72b6343e01245c92c0.tar.bz2 busybox-w32-19ced5c4253bc154aa499a72b6343e01245c92c0.zip |
pipe_progress: make it independent of printf machinery
function old new delta
bb_putchar_stderr - 24 +24
ParseField 494 471 -23
progress_meter 212 188 -24
xargs_main 888 842 -46
pipe_progress_main 151 105 -46
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/4 up/down: 24/-139) Total: -115 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/pipe_progress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debianutils/pipe_progress.c b/debianutils/pipe_progress.c index ced5fb307..6adefac99 100644 --- a/debianutils/pipe_progress.c +++ b/debianutils/pipe_progress.c | |||
@@ -24,12 +24,12 @@ int pipe_progress_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
24 | time_t new_time = time(NULL); | 24 | time_t new_time = time(NULL); |
25 | if (new_time != t) { | 25 | if (new_time != t) { |
26 | t = new_time; | 26 | t = new_time; |
27 | fputc('.', stderr); | 27 | bb_putchar_stderr('.'); |
28 | } | 28 | } |
29 | full_write(STDOUT_FILENO, buf, len); | 29 | full_write(STDOUT_FILENO, buf, len); |
30 | } | 30 | } |
31 | 31 | ||
32 | fputc('\n', stderr); | 32 | bb_putchar_stderr('\n'); |
33 | 33 | ||
34 | return 0; | 34 | return 0; |
35 | } | 35 | } |