> 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:26:02 up 1:05, 1 user, load average: 0.03, 0.08, 0.14
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user