diff options
author | Keith Packard <keithp@keithp.com> | 2012-12-04 01:30:39 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-12-04 01:30:39 -0800 |
commit | d4d5d411679d074295d4722f4887fd1cf4f0906c (patch) | |
tree | 5032e1a009cfd2a0842c6fbc180ccc72a5a04f74 /ao-tools/ao-sky-flash/sky_bin.c | |
parent | 5f6b3790667d9b92370b4fe0dad5626929fea2ba (diff) |
ao-sky-flash: Clean up debug printfs a bit
This makes debugging output a bit cleaner
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-sky-flash/sky_bin.c')
-rw-r--r-- | ao-tools/ao-sky-flash/sky_bin.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) |