mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-29 07:25:27 +00:00
* 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
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2009-07-11 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
* 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 <j.gnu@uriah.heep.sax.de>
|
2009-07-11 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
bug #26002: HVPP of EEPROM with AVR Dragon and ATmega8 Fails
|
bug #26002: HVPP of EEPROM with AVR Dragon and ATmega8 Fails
|
||||||
|
@@ -200,7 +200,7 @@ static int jtagmkI_send(PROGRAMMER * pgm, unsigned char * data, size_t len)
|
|||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
|
|
||||||
if (verbose >= 3)
|
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);
|
progname, len);
|
||||||
|
|
||||||
if ((buf = malloc(len + 2)) == NULL)
|
if ((buf = malloc(len + 2)) == NULL)
|
||||||
|
@@ -364,7 +364,7 @@ int jtagmkII_send(PROGRAMMER * pgm, unsigned char * data, size_t len)
|
|||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
|
|
||||||
if (verbose >= 3)
|
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);
|
progname, len);
|
||||||
|
|
||||||
if ((buf = malloc(len + 10)) == NULL)
|
if ((buf = malloc(len + 10)) == NULL)
|
||||||
|
@@ -574,7 +574,7 @@ static int stk500v2_recv(PROGRAMMER * pgm, unsigned char msg[], size_t maxsize)
|
|||||||
if (curlen < maxsize) {
|
if (curlen < maxsize) {
|
||||||
msg[curlen] = c;
|
msg[curlen] = c;
|
||||||
} else {
|
} 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);
|
progname,curlen,maxsize);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user