about summary refs log tree commit diff stats
path: root/src/include/debug.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-04-27 11:53:33 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-04-27 11:53:33 +0200
commit7334bb46c6b398e85977d6f9d2341a9b53434687 (patch)
tree327dc331061afa916e87aa085558381bd41a3247 /src/include/debug.h
parent9c962f8b2c60638a3bfcbee4ee8e5a33b090374e (diff)
downloadbox64-7334bb46c6b398e85977d6f9d2341a9b53434687.tar.gz
box64-7334bb46c6b398e85977d6f9d2341a9b53434687.zip
[ELFLOADER] Added lib loading/unloading logs to DLSYM_ERROR
Diffstat (limited to 'src/include/debug.h')
-rw-r--r--src/include/debug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/debug.h b/src/include/debug.h
index be216bd1..92425ad1 100644
--- a/src/include/debug.h
+++ b/src/include/debug.h
@@ -89,6 +89,13 @@ void printf_ftrace(int prefix, const char* fmt, ...);
 
 #define printf_dlsym_prefix(prefix, L, ...)                                                          \
     do {                                                                                             \
+        if (BOX64ENV(dlsym_error) || BOX64ENV(dump) || ((L) <= BOX64ENV(log))) { printf_ftrace(prefix, __VA_ARGS__); } \
+    } while (0)
+
+#define printf_dlsym_dump(L, ...) printf_dlsym_dump_prefix(1, L, __VA_ARGS__)
+
+#define printf_dlsym_dump_prefix(prefix, L, ...)                                                          \
+    do {                                                                                             \
         if (BOX64ENV(dlsym_error) || ((L) <= BOX64ENV(log))) { printf_ftrace(prefix, __VA_ARGS__); } \
     } while (0)