* [PATCH] mtd-utils: fixes verification percent display in flashcp
@ 2019-02-11 16:13 drolevar
2019-02-28 8:12 ` David Oberhollenzer
0 siblings, 1 reply; 2+ messages in thread
From: drolevar @ 2019-02-11 16:13 UTC (permalink / raw)
To: linux-mtd; +Cc: Andrij Abyzov
From: Andrij Abyzov <drolevar@gmail.com>
flashcp was always showing 0% progress due to incorrect
printf format specifier.
Signed-off-by: Andrij Abyzov <drolevar@gmail.com>
---
misc-utils/flashcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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));
--
2.20.1.windows.1
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-28 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-11 16:13 [PATCH] mtd-utils: fixes verification percent display in flashcp drolevar
2019-02-28 8:12 ` David Oberhollenzer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).