> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 10:03:58 up 43 min,  1 user,  load average: 0.58, 0.34, 0.29
This commit is contained in:
tracer-ics2023
2024-09-11 10:03:58 +08:00
committed by zzy
parent 2b698c53fc
commit 82c73d6193

View File

@ -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, "%s", elf_ftrace[i].fname);
return snprintf(log, size, "%32s", elf_ftrace[i].fname);
}
}
return 0;