# HG changeset patch # User Michael Spacefalcon # Date 1378922335 0 # Node ID ae4921a3aa333f71c41585577578c5837db7a971 # Parent 02cb0206aa47a0fbf001d44dc9b45e5d421dbd76 fc-loadtool program-{m0,srec}: more usable progress indication diff -r 02cb0206aa47 -r ae4921a3aa33 loadtools/flprogsrec.c --- a/loadtools/flprogsrec.c Tue Sep 03 07:31:26 2013 +0000 +++ b/loadtools/flprogsrec.c Wed Sep 11 17:58:55 2013 +0000 @@ -95,7 +95,7 @@ return(-1); } if (!rec_count) - printf("Programming flash, each \'.\' is one S-record\n"); + printf("Programming flash, each \'.\' is 100 S-records\n"); sprintf(shortarg, "%lx", (u_long) srr.addr); build_flashw_hex_string(srr.record + 5, longarg, srr.datalen >> 1, is_m0); @@ -109,9 +109,11 @@ fclose(srr.openfile); return(resp); } - putchar('.'); - fflush(stdout); rec_count++; + if (rec_count % 100 == 0) { + putchar('.'); + fflush(stdout); + } } /* got S7 */ fclose(srr.openfile);