diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-28 12:26:29 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-28 12:26:29 +0100 |
commit | 6be6f3bfecf436b03fe9b84b2aedbe8c938a8996 (patch) | |
tree | 620864edd90c91f45767afa80442ca87e0c41445 | |
parent | 17d4436424400517014da7bc46759985e0ea131b (diff) | |
download | busybox-w32-6be6f3bfecf436b03fe9b84b2aedbe8c938a8996.tar.gz busybox-w32-6be6f3bfecf436b03fe9b84b2aedbe8c938a8996.tar.bz2 busybox-w32-6be6f3bfecf436b03fe9b84b2aedbe8c938a8996.zip |
flashcp: trivial code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/flashcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/flashcp.c b/miscutils/flashcp.c index 36b6efe1e..b526566a4 100644 --- a/miscutils/flashcp.c +++ b/miscutils/flashcp.c | |||
@@ -33,7 +33,7 @@ static void progress(int mode, uoff_t count, uoff_t total) | |||
33 | if (total) | 33 | if (total) |
34 | percent = (unsigned) (percent / total); | 34 | percent = (unsigned) (percent / total); |
35 | printf("\r%s: %"OFF_FMT"u/%"OFF_FMT"u (%u%%) ", | 35 | printf("\r%s: %"OFF_FMT"u/%"OFF_FMT"u (%u%%) ", |
36 | (mode == -1) ? "Erasing block" : ((mode == 0) ? "Writing kb" : "Verifying kb"), | 36 | (mode < 0) ? "Erasing block" : ((mode == 0) ? "Writing kb" : "Verifying kb"), |
37 | count, total, (unsigned)percent); | 37 | count, total, (unsigned)percent); |
38 | fflush_all(); | 38 | fflush_all(); |
39 | } | 39 | } |