Fixed field widths in read/write progress messages.
This commit is contained in:
parent
2f99793914
commit
9a0173607e
2
devcmd.c
2
devcmd.c
|
@ -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
4
gdb.c
|
@ -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
2
prog.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue