Fixed field widths in read/write progress messages.

This commit is contained in:
Daniel Beer 2011-03-11 14:59:02 +13:00
parent 2f99793914
commit 9a0173607e
3 changed files with 4 additions and 4 deletions

View File

@ -456,7 +456,7 @@ int cmd_hexout(char **arg)
if (count > sizeof(buf))
count = sizeof(buf);
printc("Reading %d bytes from 0x%04x...\n", count, off);
printc("Reading %4d bytes from 0x%04x...\n", count, off);
if (device_default->readmem(device_default,
off, buf, count) < 0) {
pr_error("hexout: can't read memory");

4
gdb.c
View File

@ -324,7 +324,7 @@ static int read_memory(struct gdb_data *data, char *text)
if (length > sizeof(buf))
length = sizeof(buf);
printc("Reading %3d bytes from 0x%04x\n", length, addr);
printc("Reading %4d bytes from 0x%04x\n", length, addr);
if (device_default->readmem(device_default, addr, buf, length) < 0)
return gdb_send(data, "E00");
@ -367,7 +367,7 @@ static int write_memory(struct gdb_data *data, char *text)
return gdb_send(data, "E00");
}
printc("Writing %3d bytes to 0x%04x\n", length, addr);
printc("Writing %4d bytes to 0x%04x\n", length, addr);
if (device_default->writemem(device_default, addr, buf, buflen) < 0)
return gdb_send(data, "E00");

2
prog.c
View File

@ -42,7 +42,7 @@ int prog_flush(struct prog_data *prog)
prog->have_erased = 1;
}
printc_dbg("Writing %3d bytes to %04x...\n", prog->len, prog->addr);
printc_dbg("Writing %4d bytes to %04x...\n", prog->len, prog->addr);
if (device_default->writemem(device_default, prog->addr,
prog->buf, prog->len) < 0)
return -1;