Declare size and vsize as 'int'. These represent the size of the AVR

memory read or written (or up to where continuous 0xff begins in the
case of flash memory).  An 'int' should be plenty big enough for that.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@354 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean 2003-08-29 00:14:22 +00:00
parent 0a685d7265
commit f8e3aee203
1 changed files with 4 additions and 4 deletions

8
main.c
View File

@ -554,7 +554,7 @@ int do_op(PROGRAMMER * pgm, struct avrpart * p, UPDATE * upd, int nowrite,
{ {
struct avrpart * v; struct avrpart * v;
AVRMEM * mem; AVRMEM * mem;
long size, vsize; int size, vsize;
int rc; int rc;
mem = avr_locate_mem(p, upd->memtype); mem = avr_locate_mem(p, upd->memtype);
@ -611,7 +611,7 @@ int do_op(PROGRAMMER * pgm, struct avrpart * p, UPDATE * upd, int nowrite,
/* /*
* write the buffer contents to the selected memory type * write the buffer contents to the selected memory type
*/ */
fprintf(stderr, "%s: writing %s (%ld bytes):\n", fprintf(stderr, "%s: writing %s (%d bytes):\n",
progname, upd->memtype, size); progname, upd->memtype, size);
if (!nowrite) { if (!nowrite) {
@ -635,7 +635,7 @@ int do_op(PROGRAMMER * pgm, struct avrpart * p, UPDATE * upd, int nowrite,
vsize = rc; vsize = rc;
fprintf(stderr, "%s: %ld bytes of %s written\n", progname, fprintf(stderr, "%s: %d bytes of %s written\n", progname,
vsize, upd->memtype); vsize, upd->memtype);
} }
@ -661,7 +661,7 @@ int do_op(PROGRAMMER * pgm, struct avrpart * p, UPDATE * upd, int nowrite,
return -1; return -1;
} }
size = rc; size = rc;
fprintf(stderr, "%s: input file %s contains %ld bytes\n", fprintf(stderr, "%s: input file %s contains %d bytes\n",
progname, upd->filename, size); progname, upd->filename, size);