summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2013-01-28 12:26:29 +0100
committerDenys Vlasenko2013-01-28 12:26:29 +0100
commit6be6f3bfecf436b03fe9b84b2aedbe8c938a8996 (patch)
tree620864edd90c91f45767afa80442ca87e0c41445
parent17d4436424400517014da7bc46759985e0ea131b (diff)
downloadbusybox-6be6f3bfecf436b03fe9b84b2aedbe8c938a8996.zip
busybox-6be6f3bfecf436b03fe9b84b2aedbe8c938a8996.tar.gz
flashcp: trivial code shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/flashcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/flashcp.c b/miscutils/flashcp.c
index 36b6efe..b526566 100644
--- a/miscutils/flashcp.c
+++ b/miscutils/flashcp.c
@@ -33,7 +33,7 @@ static void progress(int mode, uoff_t count, uoff_t total)
if (total)
percent = (unsigned) (percent / total);
printf("\r%s: %"OFF_FMT"u/%"OFF_FMT"u (%u%%) ",
- (mode == -1) ? "Erasing block" : ((mode == 0) ? "Writing kb" : "Verifying kb"),
+ (mode < 0) ? "Erasing block" : ((mode == 0) ? "Writing kb" : "Verifying kb"),
count, total, (unsigned)percent);
fflush_all();
}