diff --git a/devcmd.c b/devcmd.c index 3b5df61..62f8414 100644 --- a/devcmd.c +++ b/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"); diff --git a/gdb.c b/gdb.c index 9aa6735..d976c33 100644 --- a/gdb.c +++ b/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"); diff --git a/prog.c b/prog.c index b45b2ac..ede17b5 100644 --- a/prog.c +++ b/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;