From: Michael Gernoth Date: Mon, 24 May 2010 19:51:52 +0000 (+0200) Subject: fix jtagkey warnings on 64 bit X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/commitdiff_plain/98b8ef391f9f508131d222080a79b3b3e72a4b22?hp=6b3a17156769080dfbb556ca6a617da9363d5f1d fix jtagkey warnings on 64 bit --- diff --git a/jtagkey.c b/jtagkey.c index d068cf5..a3cb8eb 100644 --- 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++;