1
0

fix jtagkey warnings on 64 bit

This commit is contained in:
Michael Gernoth 2010-05-24 21:51:52 +02:00
parent 6b3a171567
commit 98b8ef391f

View File

@ -175,7 +175,7 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase,
unsigned char *pos = writebuf; unsigned char *pos = writebuf;
int len; 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); jtagkey_latency(BULK_LATENCY);
targ.num = writepos-pos; targ.num = writepos-pos;
@ -188,7 +188,7 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase,
if (len > USBBUFSIZE) if (len > USBBUFSIZE)
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); ftdi_write_data(&ftdic, pos, len);
pos += len; pos += len;
} }
@ -279,7 +279,7 @@ int jtagkey_transfer(WD_TRANSFER *tr, int fd, unsigned int request, int ppbase,
if (nread) if (nread)
{ {
DPRINTF("writing %d bytes\n", writepos-writebuf); DPRINTF("writing %zd bytes\n", writepos-writebuf);
*writepos = last_data; *writepos = last_data;
writepos++; writepos++;