FreeCalypso > hg > freecalypso-tools
comparison loadtools/flprogbin.c @ 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 | f67e5ad30324 |
children |
comparison
equal
deleted
inserted
replaced
691:8bea9cdd8a89 | 692:185c9bf208d3 |
---|---|
211 return(-1); | 211 return(-1); |
212 } | 212 } |
213 duration = last_time - initial_time; | 213 duration = last_time - initial_time; |
214 mm = duration / 60; | 214 mm = duration / 60; |
215 ss = duration - mm * 60; | 215 ss = duration - mm * 60; |
216 printf("Operation completed in %um%us\n", mm, ss); | 216 printf("Operation completed in %um%02us\n", mm, ss); |
217 | 217 |
218 /* reset flash to read mode */ | 218 /* reset flash to read mode */ |
219 if (bi->ops->reset_cmd(bi) < 0) | 219 if (bi->ops->reset_cmd(bi) < 0) |
220 return(-1); | 220 return(-1); |
221 printf("Verifying CRC-32 of programmed flash area\n"); | 221 printf("Verifying CRC-32 of programmed flash area\n"); |