diff --git a/nemu/src/monitor/elf.c b/nemu/src/monitor/elf.c index 4a5067a..47991b1 100644 --- a/nemu/src/monitor/elf.c +++ b/nemu/src/monitor/elf.c @@ -100,7 +100,7 @@ void init_elf(const char* elf_file) { // filling ftrace assert(pstrt != NULL && pstrt != NULL); for (int i = 0; i < symt_len; i ++) { - Log("---LOG: %3d: %08x %5d %x", i, psymt[i].st_value, psymt[i].st_size, psymt[i].st_name); + Log("---LOG: %3d: %08x %5u %x", i, psymt[i].st_value, psymt[i].st_size, psymt[i].st_name); if (ELF_ST_TYPE(psymt[i].st_info) == STT_FUNC) { // Warning due to elf_ftrace is global variable so you don't need to set '\0' in the end // strncpy(elf_ftrace[elf_ftrace_size].fname, pstrt + psymt[i].st_name,