aboutsummaryrefslogtreecommitdiff
path: root/misc-utils
diff options
context:
space:
mode:
authorAndrij Abyzov <drolevar@gmail.com>2019-02-11 17:13:40 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-02-26 15:08:16 +0100
commit5fdd9a14eb2c05ffc6c744ffa507e60bf2af6de6 (patch)
treecd2486faf86f273487299e248e158b16f5782596 /misc-utils
parentf18e9636a26f39f6595ed365d31c01e876235b63 (diff)
mtd-utils: fixes verification percent display in flashcp
flashcp was always showing 0% progress due to incorrect printf format specifier. Signed-off-by: Andrij Abyzov <drolevar@gmail.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/flashcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/flashcp.c b/misc-utils/flashcp.c
index 0718733..c46a5b4 100644
--- a/misc-utils/flashcp.c
+++ b/misc-utils/flashcp.c
@@ -357,7 +357,7 @@ int main (int argc,char *argv[])
if (size < BUFSIZE) i = size;
if (flags & FLAG_VERBOSE)
log_printf (LOG_NORMAL,
- "\rVerifying data: %dk/%lluk (%lu%%)",
+ "\rVerifying data: %dk/%lluk (%llu%%)",
KB (written + i),
KB ((unsigned long long)filestat.st_size),
PERCENTAGE (written + i,(unsigned long long)filestat.st_size));