From 7b6b425b75abadc88b6e739f1f76ced098f4b97b Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Fri, 10 Jul 2009 22:39:37 +0000 Subject: [PATCH] * jtagmkI.c (jtagmkI_send): Replace %zd format by %u since not all implementations do understand the C99 formatting options (sigh). * jtagmkII.c (jtagmkII_send): (Ditto.) * stk500v2.c (stk500v2_recv): (Ditto.) git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@836 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/ChangeLog | 7 +++++++ avrdude/jtagmkI.c | 2 +- avrdude/jtagmkII.c | 2 +- avrdude/stk500v2.c | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/avrdude/ChangeLog b/avrdude/ChangeLog index 3dbc04ea..d7414119 100644 --- a/avrdude/ChangeLog +++ b/avrdude/ChangeLog @@ -1,3 +1,10 @@ +2009-07-11 Joerg Wunsch + + * jtagmkI.c (jtagmkI_send): Replace %zd format by %u since not all + implementations do understand the C99 formatting options (sigh). + * jtagmkII.c (jtagmkII_send): (Ditto.) + * stk500v2.c (stk500v2_recv): (Ditto.) + 2009-07-11 Joerg Wunsch bug #26002: HVPP of EEPROM with AVR Dragon and ATmega8 Fails diff --git a/avrdude/jtagmkI.c b/avrdude/jtagmkI.c index 2215ee00..0b392c22 100644 --- a/avrdude/jtagmkI.c +++ b/avrdude/jtagmkI.c @@ -200,7 +200,7 @@ static int jtagmkI_send(PROGRAMMER * pgm, unsigned char * data, size_t len) unsigned char *buf; if (verbose >= 3) - fprintf(stderr, "\n%s: jtagmkI_send(): sending %zd bytes\n", + fprintf(stderr, "\n%s: jtagmkI_send(): sending %u bytes\n", progname, len); if ((buf = malloc(len + 2)) == NULL) diff --git a/avrdude/jtagmkII.c b/avrdude/jtagmkII.c index 8e8025ce..f325ec58 100644 --- a/avrdude/jtagmkII.c +++ b/avrdude/jtagmkII.c @@ -364,7 +364,7 @@ int jtagmkII_send(PROGRAMMER * pgm, unsigned char * data, size_t len) unsigned char *buf; if (verbose >= 3) - fprintf(stderr, "\n%s: jtagmkII_send(): sending %zd bytes\n", + fprintf(stderr, "\n%s: jtagmkII_send(): sending %u bytes\n", progname, len); if ((buf = malloc(len + 10)) == NULL) diff --git a/avrdude/stk500v2.c b/avrdude/stk500v2.c index 7cd634e4..e3509531 100644 --- a/avrdude/stk500v2.c +++ b/avrdude/stk500v2.c @@ -574,7 +574,7 @@ static int stk500v2_recv(PROGRAMMER * pgm, unsigned char msg[], size_t maxsize) if (curlen < maxsize) { msg[curlen] = c; } else { - fprintf(stderr, "%s: stk500v2_recv(): buffer too small, received %d byte into %zd byte buffer\n", + fprintf(stderr, "%s: stk500v2_recv(): buffer too small, received %d byte into %u byte buffer\n", progname,curlen,maxsize); return -2; }