]> err.no Git - gant/commitdiff
Added some typecasting in the debug statements to get gant.c and antlib.c to compile
authorJordan Miller <jordan@luckyone.(none)>
Sun, 29 Mar 2009 00:29:12 +0000 (19:29 -0500)
committerJordan Miller <jordan@luckyone.(none)>
Sun, 29 Mar 2009 00:29:12 +0000 (19:29 -0500)
antlib.c

index 1a22cb115713ee90d64832bb92a52761a0c64a71..a486e0dfa9ebf9f23d2bad98576a8ff031aa1ffa 100644 (file)
--- a/antlib.c
+++ b/antlib.c
@@ -257,7 +257,7 @@ get_data(int fd)
                                                                        memcpy(burstbuf[chan], buf+i+4, 8);
                                                                        bused[chan] = 8;
                                                                        lseq[chan] = seq;
-                                                                       fprintf(stderr, "reinit ch# %d %d\n", chan, lseq);
+                                                                       fprintf(stderr, "reinit ch# %d %d\n", chan, lseq[chan]);
                                                                }
                                                        } else {
                                                                if ((bused[chan] % BSIZE) == 0) {
@@ -277,7 +277,7 @@ get_data(int fd)
                                                if (burstbuf[chan] && last) {
                                                        blast = burstbuf[chan];
                                                        blsize = bused[chan];
-                                                       if (dbg) fprintf(stderr, "BU %d %lx\n", blsize, blast);
+                                                       if (dbg) fprintf(stderr, "BU %d %lx\n", blsize, (long)blast);
                                                        if (dbg) {
                                                                fprintf(stderr, "bused ch# %d %d\n", chan, bused[chan]);
                                                                for (k = 0; k < bused[chan]; k++)
@@ -329,14 +329,14 @@ get_data(int fd)
                                        }
                                        memcpy(cbufp, buf+i+4, dlen);
                                        if (dbg) {
-                                               fprintf(stderr, "xch0#%d %d %lx\n", chan, blsize, blast);
+                                               fprintf(stderr, "xch0#%d %d %lx\n", chan, blsize, (long)blast);
                                                for (j = 0; j < blsize; j++)
                                                        fprintf(stderr, "%02x", *(blast+j));
                                                fprintf(stderr, "\n");
                                        }
                                        (*cfn)(chan, event);
                                        if (dbg) {
-                                               fprintf(stderr, "xch1#%d %d %lx\n", chan, blsize, blast);
+                                               fprintf(stderr, "xch1#%d %d %lx\n", chan, blsize, (long)blast);
                                                for (j = 0; j < blsize; j++)
                                                        fprintf(stderr, "%02x", *(blast+j));
                                                fprintf(stderr, "\n");
@@ -344,7 +344,7 @@ get_data(int fd)
                                        // FAKE BURST message
                                        if (event == EVENT_RX_BURST_PACKET && blast && blsize) {
                                                if (dbg) {
-                                                       fprintf(stderr, "Fake burst ch#%d %d %lx\n", chan, blsize, blast);
+                                                       fprintf(stderr, "Fake burst ch#%d %d %lx\n", chan, blsize, (long)blast);
                                                        for (j = 0; j < blsize; j++)
                                                                fprintf(stderr, "%02x", *(blast+j));
                                                        fprintf(stderr, "\n");