From: Denys Vlasenko Date: Mon, 28 Jan 2013 11:26:29 +0000 (+0100) Subject: flashcp: trivial code shrink X-Git-Tag: 1_22_0~308 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6be6f3bfecf436b03fe9b84b2aedbe8c938a8996;p=oweals%2Fbusybox.git flashcp: trivial code shrink Signed-off-by: Denys Vlasenko --- 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) 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(); }