Change ording for memory display.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@93 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
bsd 2001-10-16 23:46:59 +00:00
parent 9a28000280
commit ae439695a1
1 changed files with 5 additions and 7 deletions

8
avr.c
View File

@ -316,8 +316,6 @@ int avr_write_page(int fd, AVRPART * p, int memtype,
*/ */
page = page << p->mem[memtype].pageaddr_shift; page = page << p->mem[memtype].pageaddr_shift;
fprintf(stderr, "page address=%u\n", page);
cmd[0] = 0x4c; cmd[0] = 0x4c;
cmd[1] = page >> 8; /* high order bits of address */ cmd[1] = page >> 8; /* high order bits of address */
cmd[2] = page & 0x0ff; /* low order bits of address */ cmd[2] = page & 0x0ff; /* low order bits of address */
@ -716,19 +714,19 @@ void avr_mem_display(char * prefix, FILE * f, AVRMEM * m, int type)
if (m == NULL) { if (m == NULL) {
fprintf(f, fprintf(f,
"%sMem Page Page Polled\n" "%sMem Page Page Polled\n"
"%sType Paged Size Size Shift #Pages MinW MaxW ReadBack\n" "%sType Paged Size Size #Pages Shift MinW MaxW ReadBack\n"
"%s------ ------ ------ ---- ------ ----- ----- ----- ---------\n", "%s------ ------ ------ ---- ------ ----- ----- ----- ---------\n",
prefix, prefix, prefix); prefix, prefix, prefix);
} }
else { else {
fprintf(f, fprintf(f,
"%s%-6s %-6s %6d %4d %5d %6d %5d %5d 0x%02x 0x%02x\n", "%s%-6s %-6s %6d %4d %6d %5d %5d %5d 0x%02x 0x%02x\n",
prefix, avr_memtstr(type), prefix, avr_memtstr(type),
m->paged ? "yes" : "no", m->paged ? "yes" : "no",
m->size, m->size,
m->page_size, m->page_size,
m->pageaddr_shift,
m->num_pages, m->num_pages,
m->pageaddr_shift,
m->min_write_delay, m->min_write_delay,
m->max_write_delay, m->max_write_delay,
m->readback[0], m->readback[0],