Switch from GPLv2 to GPLv2+
[fw/altos] / ao-tools / ao-sky-flash / sky_bin.c
index e693c89204d16f02c8c9ed30744dbf525080679f..d728d0c22413cb30dde726b1e8309cb5417e7d48 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -40,14 +41,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 +64,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)