about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-11-05 13:17:37 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-11-05 13:17:37 +0100
commite6943c8a9dad781aa5e1caf7c0cd59041e3c29f8 (patch)
treeb4c9cb07e18777cb577f87fca965806412c5fb87 /src
parentc6483b5cf8daf9d85838a5c6a4bc529e66b64b85 (diff)
downloadbox64-e6943c8a9dad781aa5e1caf7c0cd59041e3c29f8.tar.gz
box64-e6943c8a9dad781aa5e1caf7c0cd59041e3c29f8.zip
[TRACE] Show mmap size in hex
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64int3.c2
-rw-r--r--src/wrapped/wrappedlibc.c2
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;