From 77bc532fd25af2f1e95cb334f5dffc00a3a59640 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Fri, 29 Aug 2003 00:14:22 +0000 Subject: [PATCH] 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@354 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/avrdude/main.c b/avrdude/main.c index cf6a8ca1..dd2b688d 100644 --- a/avrdude/main.c +++ b/avrdude/main.c @@ -554,7 +554,7 @@ int do_op(PROGRAMMER * pgm, struct avrpart * p, UPDATE * upd, int nowrite, { struct avrpart * v; AVRMEM * mem; - long size, vsize; + int size, vsize; int rc; 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 */ - fprintf(stderr, "%s: writing %s (%ld bytes):\n", + fprintf(stderr, "%s: writing %s (%d bytes):\n", progname, upd->memtype, size); if (!nowrite) { @@ -635,7 +635,7 @@ int do_op(PROGRAMMER * pgm, struct avrpart * p, UPDATE * upd, int nowrite, 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); } @@ -661,7 +661,7 @@ int do_op(PROGRAMMER * pgm, struct avrpart * p, UPDATE * upd, int nowrite, return -1; } 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);