diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emu/x64int3.c | 2 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c index 9f858fb0..5d0546b9 100644 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -263,7 +263,7 @@ void x64Int3(x64emu_t* emu, uintptr_t* addr) } else if (!strcmp(s, "ov_read")) { snprintf(buff, 256, "%04d|%p: Calling %s(%p, %p, %d, %d, %d, %d, %p)", tid, *(void**)(R_RSP), s, (void*)R_RDI, (void*)R_RSI, R_EDX, R_ECX, R_R8d, R_R9d, *(void**)(R_RSP+8)); } else if (!strcmp(s, "mmap64") || !strcmp(s, "mmap")) { - snprintf(buff, 256, "%04d|%p: Calling %s(%p, %lu, 0x%x, 0x%x, %d, %ld)", tid, *(void**)(R_RSP), s, + snprintf(buff, 256, "%04d|%p: Calling %s(%p, 0x%lx, 0x%x, 0x%x, %d, %ld)", tid, *(void**)(R_RSP), s, (void*)R_RDI, R_RSI, (int)(R_RDX), (int)R_RCX, (int)R_R8, R_R9); perr = 3; } else if (!strcmp(s, "sscanf")) { diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index ff6ed7ce..cd68e7e0 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2556,7 +2556,7 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, unsigned long length, int prot (void)emu; if(prot&PROT_WRITE) prot|=PROT_READ; // PROT_READ is implicit with PROT_WRITE on i386 - if(emu && (box64_log>=LOG_DEBUG || box64_dynarec_log>=LOG_DEBUG)) {printf_log(LOG_NONE, "mmap64(%p, %lu, 0x%x, 0x%x, %d, %ld) => ", addr, length, prot, flags, fd, offset);} + if(emu && (box64_log>=LOG_DEBUG || box64_dynarec_log>=LOG_DEBUG)) {printf_log(LOG_NONE, "mmap64(%p, 0x%lx, 0x%x, 0x%x, %d, %ld) => ", addr, length, prot, flags, fd, offset);} int new_flags = flags; #ifndef NOALIGN void* old_addr = addr; |