From 777d96086a5c11b1260f054e75b3fa14e5d7e115 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Sat, 27 Jul 2002 20:55:01 +0000 Subject: [PATCH] Fix a typo in a comment. Display the size of memory being written. Display the correct memory name in an error message (previously hardcoded). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@137 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/avr.c | 2 +- avrdude/main.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/avrdude/avr.c b/avrdude/avr.c index ba58a1da..5ce5c3a1 100644 --- a/avrdude/avr.c +++ b/avrdude/avr.c @@ -583,7 +583,7 @@ int avr_write_byte(int fd, AVRPART * p, AVRMEM * mem, if (mem->paged) { /* - * in paged addressing, single bytes to written to the memory + * in paged addressing, single bytes to be written to the memory * page complete immediately, we only need to delay when we commit * the whole page via the avr_write_page() routine. */ diff --git a/avrdude/main.c b/avrdude/main.c index 65cc51e4..fe42265d 100644 --- a/avrdude/main.c +++ b/avrdude/main.c @@ -957,8 +957,8 @@ int main(int argc, char * argv []) /* * write the buffer contents to the selected memory type */ - fprintf(stderr, "%s: writing %s:\n", - progname, memtype); + fprintf(stderr, "%s: writing %s (%d bytes):\n", + progname, memtype, size); if (!nowrite) { rc = avr_write(fd, p, memtype, size, 1); @@ -972,8 +972,8 @@ int main(int argc, char * argv []) } if (rc < 0) { - fprintf(stderr, "%s: failed to write flash memory, rc=%d\n", - progname, rc); + fprintf(stderr, "%s: failed to write %s memory, rc=%d\n", + progname, memtype, rc); exitrc = 1; goto main_exit; }