diff --git a/nemu/src/monitor/elf.c b/nemu/src/monitor/elf.c index 84315e3..bf8c8aa 100644 --- a/nemu/src/monitor/elf.c +++ b/nemu/src/monitor/elf.c @@ -30,7 +30,7 @@ void ftrace_display() { int ftrace_inst(char* log, size_t size, vaddr_t pc) { for (int i = 0; i < elf_ftrace_size; i ++) { if (pc >= elf_ftrace[i].start && pc < elf_ftrace[i].end) { - return snprintf(log, size, "%32s", elf_ftrace[i].fname); + return snprintf(log, size, "%-31s ", elf_ftrace[i].fname); } } return 0;