fix jtagkey warnings on 64 bit
authorMichael Gernoth <michael@gernoth.net>
Mon, 24 May 2010 19:51:52 +0000 (21:51 +0200)
committerMichael Gernoth <michael@gernoth.net>
Mon, 24 May 2010 19:51:52 +0000 (21:51 +0200)
jtagkey.c

index d068cf50fdd84b9d4adedd99b3ca8ef1f6128555..a3cb8eb9a2235559ae3a3034ac82fc59c069d8a8 100644 (file)
--- a/jtagkey.c
+++ b/jtagkey.c
@@ -175,7 +175,7 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase,
                unsigned char *pos = writebuf;
                int len;
 
-               DPRINTF("writing %d bytes due to %d following reads in %d chunks or full buffer\n", writepos-writebuf, nread, num);
+               DPRINTF("writing %zd bytes due to %d following reads in %d chunks or full buffer\n", writepos-writebuf, nread, num);
                jtagkey_latency(BULK_LATENCY);
 
                targ.num = writepos-pos;
@@ -188,7 +188,7 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase,
                        if (len > USBBUFSIZE)
                                len = USBBUFSIZE;
 
-                       DPRINTF("combined write of %d/%d\n",len,writepos-pos);
+                       DPRINTF("combined write of %d/%zd\n",len,writepos-pos);
                        ftdi_write_data(&ftdic, pos, len);
                        pos += len;
                }
@@ -279,7 +279,7 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase,
 
        if (nread)
        {
-               DPRINTF("writing %d bytes\n", writepos-writebuf);
+               DPRINTF("writing %zd bytes\n", writepos-writebuf);
 
                *writepos = last_data;
                writepos++;
Impressum, Datenschutz