From 5fdd9a14eb2c05ffc6c744ffa507e60bf2af6de6 Mon Sep 17 00:00:00 2001 From: Andrij Abyzov Date: Mon, 11 Feb 2019 17:13:40 +0100 Subject: 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 Signed-off-by: David Oberhollenzer --- misc-utils/flashcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc-utils') 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)); -- cgit v1.2.3