changeset 692:185c9bf208d3

loadtools operation time reporting: two digits for seconds
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 11 Mar 2020 04:15:45 +0000
parents 8bea9cdd8a89
children 4a1f0bbca58e
files loadtools/chainload.c loadtools/flerase.c loadtools/flprogbin.c loadtools/flprogsrec.c loadtools/ltdump.c
diffstat 5 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/chainload.c	Wed Mar 11 01:11:34 2020 +0000
+++ b/loadtools/chainload.c	Wed Mar 11 04:15:45 2020 +0000
@@ -156,7 +156,7 @@
 	duration = finish_time - start_time;
 	mm = duration / 60;
 	ss = duration - mm * 60;
-	printf("XRAM image transferred in %um%us\n", mm, ss);
+	printf("XRAM image transferred in %um%02us\n", mm, ss);
 	printf("Verifying CRC-32 of %u downloaded region(s)\n", regcount);
 	for (reg = 0, regp = regions; reg < regcount; reg++, regp++) {
 		rc = crc32_on_target((u_long) regp->start,
--- a/loadtools/flerase.c	Wed Mar 11 01:11:34 2020 +0000
+++ b/loadtools/flerase.c	Wed Mar 11 04:15:45 2020 +0000
@@ -74,7 +74,7 @@
 	duration = finish_time - start_time;
 	mm = duration / 60;
 	ss = duration - mm * 60;
-	printf("Operation completed in %um%us\n", mm, ss);
+	printf("Operation completed in %um%02us\n", mm, ss);
 	return(0);
 }
 
@@ -127,6 +127,6 @@
 	duration = finish_time - start_time;
 	mm = duration / 60;
 	ss = duration - mm * 60;
-	printf("Operation completed in %um%us\n", mm, ss);
+	printf("Operation completed in %um%02us\n", mm, ss);
 	return(0);
 }
--- a/loadtools/flprogbin.c	Wed Mar 11 01:11:34 2020 +0000
+++ b/loadtools/flprogbin.c	Wed Mar 11 04:15:45 2020 +0000
@@ -213,7 +213,7 @@
 	duration = last_time - initial_time;
 	mm = duration / 60;
 	ss = duration - mm * 60;
-	printf("Operation completed in %um%us\n", mm, ss);
+	printf("Operation completed in %um%02us\n", mm, ss);
 
 	/* reset flash to read mode */
 	if (bi->ops->reset_cmd(bi) < 0)
--- a/loadtools/flprogsrec.c	Wed Mar 11 01:11:34 2020 +0000
+++ b/loadtools/flprogsrec.c	Wed Mar 11 04:15:45 2020 +0000
@@ -324,7 +324,7 @@
 	duration = last_time - initial_time;
 	mm = duration / 60;
 	ss = duration - mm * 60;
-	printf("Operation completed in %um%us\n", mm, ss);
+	printf("Operation completed in %um%02us\n", mm, ss);
 
 	/* reset flash to read mode */
 	if (bi->ops->reset_cmd(bi) < 0)
--- a/loadtools/ltdump.c	Wed Mar 11 01:11:34 2020 +0000
+++ b/loadtools/ltdump.c	Wed Mar 11 04:15:45 2020 +0000
@@ -177,7 +177,7 @@
 	duration = dump_last_time - dump_initial_time;
 	mm = duration / 60;
 	ss = duration - mm * 60;
-	printf("Dump stream received in %um%us\n", mm, ss);
+	printf("Dump stream received in %um%02us\n", mm, ss);
 
 	printf("Requesting another CRC-32 of the area from target...\n");
 	rc = crc32_on_target(start_addr, area_len, &target_crc_fin);