Skip to contentSkip to conversation

mtd-utils: fixes verification percent display in flashcp

PATCH Applied [email protected] 2 participants 2 messages Feb 11, 2019 – Feb 28, 2019 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd-utils: fixes verification percent display in flashcp

From: Andrij Abyzov <[email protected]>

flashcp was always showing 0% progress due to incorrect printf format specifier.

---
 misc-utils/flashcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
misc-utils/flashcp.c +1 -1
index 0718733..c46a5b4 100644
@@ -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));
Signature · 6 lines
2.20.1.windows.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/