diff --git a/nemu/src/monitor/sdb/sdb.c b/nemu/src/monitor/sdb/sdb.c index d1e00ec..642e185 100644 --- a/nemu/src/monitor/sdb/sdb.c +++ b/nemu/src/monitor/sdb/sdb.c @@ -189,7 +189,7 @@ static int cmd_x(char *args) { word_t addr = parse_expr(arg, &res); if (!res) goto wrong_usage; - printf("%d, %d\n", addr, WORD_BYTES); + printf("%u, %d\n", addr, WORD_BYTES); for (paddr_t paddr = addr; paddr < addr + n; paddr += WORD_BYTES) { word_t value = paddr_read(addr, WORD_BYTES);