From 98b8ef391f9f508131d222080a79b3b3e72a4b22 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Mon, 24 May 2010 21:51:52 +0200 Subject: [PATCH] fix jtagkey warnings on 64 bit --- jtagkey.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++; -- 2.39.5