diff --git a/nemu/src/memory/paddr.c b/nemu/src/memory/paddr.c index 4d1e094..437debd 100644 --- a/nemu/src/memory/paddr.c +++ b/nemu/src/memory/paddr.c @@ -52,7 +52,7 @@ static void out_of_bound(paddr_t addr) { static void mtrace_print(char type, word_t addr, int len, word_t data) { for (int i = 0; i < range_count; i++) if (addr <= mtrace_end[i] && addr >= mtrace_start[i] ) { - Trace("Mem %c " FMT_PADDR "%d D " FMT_PADDR "\n", type, addr, len, data); + Trace("Mem %c " FMT_PADDR "%d D " FMT_PADDR, type, addr, len, data); break; } }