X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Fao-sky-flash%2Fsky_bin.c;h=04cfec35794899a9e7a800480e3aee9df0556b75;hb=677fcafd3816b6d8d86b2dc41b840d97b5ccbf07;hp=e693c89204d16f02c8c9ed30744dbf525080679f;hpb=dd8b2eadab12965d232640449b1d1c9f2484238c;p=fw%2Faltos diff --git a/ao-tools/ao-sky-flash/sky_bin.c b/ao-tools/ao-sky-flash/sky_bin.c index e693c892..04cfec35 100644 --- a/ao-tools/ao-sky-flash/sky_bin.c +++ b/ao-tools/ao-sky-flash/sky_bin.c @@ -40,14 +40,12 @@ skytraq_send_bin(int fd, const char *filename) return -1; } - printf ("computing checksum...\n"); fflush(stdout); /* Compute checksum, figure out how long the file */ cksum = 0; while ((c = getc(file)) != EOF) cksum += (unsigned char) c; size = ftell(file); rewind(file); - printf ("checksum: %d\n", cksum); fflush(stdout); sprintf(message, "BINSIZE = %d Checksum = %d Loopnumber = %d ", size, cksum, 1); @@ -65,7 +63,7 @@ skytraq_send_bin(int fd, const char *filename) } if (count == 0) break; - printf ("write %ld of %ld ", pos + count, size); fflush(stdout); + skytraq_dbg_printf (0, "%7d of %7d ", pos + count, size); pos += count; ret = skytraq_cmd_wait(fd, buf, count, "OK", 20000); if (ret < 0)