comparison loadtools/chainload.c @ 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 604648026e9c
children
comparison
equal deleted inserted replaced
138:85994b210f6a 139:771d9fda7630
73 fprintf(stderr, 73 fprintf(stderr,
74 "%s line %d: S3 record has zero data length\n", 74 "%s line %d: S3 record has zero data length\n",
75 xramimage.filename, xramimage.lineno); 75 xramimage.filename, xramimage.lineno);
76 exit(1); 76 exit(1);
77 } 77 }
78 if (!rec_count)
79 printf("Each \'.\' is 100 S-records\n");
78 make_ml_arg(xramimage.record, srecarg); 80 make_ml_arg(xramimage.record, srecarg);
79 tpinterf_make_cmd(argv); 81 tpinterf_make_cmd(argv);
80 if (tpinterf_send_cmd()) 82 if (tpinterf_send_cmd())
81 exit(1); 83 exit(1);
82 if (tpinterf_pass_output(1)) 84 if (tpinterf_pass_output(1))
83 exit(1); 85 exit(1);
84 putchar('.');
85 fflush(stdout);
86 rec_count++; 86 rec_count++;
87 if (rec_count % 100 == 0) {
88 putchar('.');
89 fflush(stdout);
90 }
87 } 91 }
88 /* got S7 */ 92 /* got S7 */
89 fclose(xramimage.openfile); 93 fclose(xramimage.openfile);
90 if (!rec_count) { 94 if (!rec_count) {
91 fprintf(stderr, 95 fprintf(stderr,