about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-05-17 10:49:53 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-05-17 10:49:53 +0200
commit04e960b0dabc7f8bf77d532b57c1156ff10e2735 (patch)
tree685ce05641718d2084e2040e5cfc883210fc0de8 /src
parent8d199cfc6cd991d386f99e158c52e9e78988b15e (diff)
downloadbox64-04e960b0dabc7f8bf77d532b57c1156ff10e2735.tar.gz
box64-04e960b0dabc7f8bf77d532b57c1156ff10e2735.zip
[TARCE] Better trace for neverclean mmaps
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappedlibc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 64fe5bb3..9e8ba194 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -2865,7 +2865,7 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, unsigned long length, int prot
         if((flags&MAP_SHARED) && (fd>0)) {
             uint32_t flags = fcntl(fd, F_GETFL);
             if((flags&O_ACCMODE)==O_RDWR) {
-                if((box64_log>=LOG_DEBUG || box64_dynarec_log>=LOG_DEBUG)) {printf_log(LOG_NONE, "Note: Marking the region as NEVERCLEAN because fd have O_RDWR attribute\n");}
+                if((box64_log>=LOG_DEBUG || box64_dynarec_log>=LOG_DEBUG)) {printf_log(LOG_NONE, "Note: Marking the region (%p-%p prot=%x) as NEVERCLEAN because fd have O_RDWR attribute\n", ret, ret+length, prot);}
                 prot |= PROT_NEVERCLEAN;
             }
         }