projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17d4436
)
flashcp: trivial code shrink
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 28 Jan 2013 11:26:29 +0000
(12:26 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 28 Jan 2013 11:26:29 +0000
(12:26 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/flashcp.c
patch
|
blob
|
history
diff --git
a/miscutils/flashcp.c
b/miscutils/flashcp.c
index 36b6efe1e83c982f7105305fa49656f99c6b3562..b526566a41a6cbc99fa154318d7d4d8dfce1ec81 100644
(file)
--- 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();
}