On 06/25/2018 05:42 AM, Philippe Mathieu-Daudé wrote: > -#define VSCARD_IN_SIZE 65536 > +#define VSCARD_IN_SIZE (64 * KiB) > > /* maximum size of ATR - from 7816-3 */ > #define MAX_ATR_SIZE 40 > @@ -276,7 +277,7 @@ static void ccid_card_vscard_read(void *opaque, const > uint8_t *buf, int size) > > if (card->vscard_in_pos + size > VSCARD_IN_SIZE) { > error_report( > - "no room for data: pos %d + size %d > %d. dropping connection.", > + "no room for data: pos %u + size %d > %ld. dropping > connection.", > card->vscard_in_pos, size, VSCARD_IN_SIZE);
Did you test this with i686 host? %ld doesn't look right. r~