diff --git a/nemu/src/monitor/sdb/sdb.c b/nemu/src/monitor/sdb/sdb.c index 641b1b3..60239f1 100644 --- a/nemu/src/monitor/sdb/sdb.c +++ b/nemu/src/monitor/sdb/sdb.c @@ -155,7 +155,7 @@ static int cmd_p(char *args) { word_t result = parse_expr(arg, &res); if (!res) goto wrong_usage; - printf("%s: %u", arg, result); + printf("%s: %u\n", arg, result); return 0; wrong_usage: