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
This commit is contained in:
Brian S. Dean 2002-07-27 20:55:01 +00:00
parent dab67ba9c7
commit 777d96086a
2 changed files with 5 additions and 5 deletions

View File

@ -583,7 +583,7 @@ int avr_write_byte(int fd, AVRPART * p, AVRMEM * mem,
if (mem->paged) { 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 * page complete immediately, we only need to delay when we commit
* the whole page via the avr_write_page() routine. * the whole page via the avr_write_page() routine.
*/ */

View File

@ -957,8 +957,8 @@ int main(int argc, char * argv [])
/* /*
* write the buffer contents to the selected memory type * write the buffer contents to the selected memory type
*/ */
fprintf(stderr, "%s: writing %s:\n", fprintf(stderr, "%s: writing %s (%d bytes):\n",
progname, memtype); progname, memtype, size);
if (!nowrite) { if (!nowrite) {
rc = avr_write(fd, p, memtype, size, 1); rc = avr_write(fd, p, memtype, size, 1);
@ -972,8 +972,8 @@ int main(int argc, char * argv [])
} }
if (rc < 0) { if (rc < 0) {
fprintf(stderr, "%s: failed to write flash memory, rc=%d\n", fprintf(stderr, "%s: failed to write %s memory, rc=%d\n",
progname, rc); progname, memtype, rc);
exitrc = 1; exitrc = 1;
goto main_exit; goto main_exit;
} }