FreeCalypso > hg > freecalypso-sw
changeset 139:771d9fda7630
fc-xram: print one '.' for every 100 S-records
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 11 Nov 2013 10:46:19 +0000 |
parents | 85994b210f6a |
children | 5b53cad88637 |
files | loadtools/chainload.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/loadtools/chainload.c Mon Nov 11 10:17:08 2013 +0000 +++ b/loadtools/chainload.c Mon Nov 11 10:46:19 2013 +0000 @@ -75,15 +75,19 @@ xramimage.filename, xramimage.lineno); exit(1); } + if (!rec_count) + printf("Each \'.\' is 100 S-records\n"); make_ml_arg(xramimage.record, srecarg); tpinterf_make_cmd(argv); if (tpinterf_send_cmd()) exit(1); if (tpinterf_pass_output(1)) exit(1); - putchar('.'); - fflush(stdout); rec_count++; + if (rec_count % 100 == 0) { + putchar('.'); + fflush(stdout); + } } /* got S7 */ fclose(xramimage.openfile);