about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-02-18 17:41:48 +0800
committerGitHub <noreply@github.com>2025-02-18 10:41:48 +0100
commit0d1488b016386aebdaa7baf89b5f9bbca1199318 (patch)
tree15b388b406a67bcb8c572cdc7988bfc47956c3a8 /src
parentfb4662cb28f16c09542aca9e9a2dd50100f74879 (diff)
downloadbox64-0d1488b016386aebdaa7baf89b5f9bbca1199318.tar.gz
box64-0d1488b016386aebdaa7baf89b5f9bbca1199318.zip
Fixed dlsym_error logs prefix (#2383)
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappedlibdl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c
index deb73827..dd40a1aa 100644
--- a/src/wrapped/wrappedlibdl.c
+++ b/src/wrapped/wrappedlibdl.c
@@ -358,14 +358,14 @@ void* my_dlsym(x64emu_t* emu, void *handle, void *symbol)
     if(handle==NULL) {
         // special case, look globably
         if(GetGlobalSymbolStartEnd(my_context->maplib, rsymbol, &start, &end, NULL, -1, NULL, 0, NULL)) {
-            printf_dlsym(LOG_NEVER, "%p\n", (void*)start);
+            printf_dlsym_prefix(0, LOG_NEVER, "%p\n", (void*)start);
             pthread_mutex_unlock(&mutex);
             return (void*)start;
         }
         if(!dl->last_error)
             dl->last_error = box_calloc(1, 129);
         snprintf(dl->last_error, 129, "Symbol \"%s\" not found in %p)\n", rsymbol, handle);
-        printf_dlsym(LOG_NEVER, "%p\n", NULL);
+        printf_dlsym_prefix(0, LOG_NEVER, "%p\n", NULL);
         pthread_mutex_unlock(&mutex);
         return NULL;
     }
@@ -526,13 +526,13 @@ void* my_dlvsym(x64emu_t* emu, void *handle, void *symbol, const char *vername)
     if(handle==NULL) {
         // special case, look globably
         if(GetGlobalSymbolStartEnd(my_context->maplib, rsymbol, &start, &end, NULL, version, vername, 0, NULL)) {
-            printf_dlsym(LOG_NEVER, "%p\n", (void*)start);
+            printf_dlsym_prefix(0, LOG_NEVER, "%p\n", (void*)start);
             return (void*)start;
         }
         if(!dl->last_error)
             dl->last_error = box_calloc(1, 129);
         snprintf(dl->last_error, 129, "Symbol \"%s\" version %s not found in %p)\n", rsymbol, vername?vername:"(nil)", handle);
-            printf_dlsym(LOG_NEVER, "%p\n", NULL);
+        printf_dlsym_prefix(0, LOG_NEVER, "%p\n", NULL);
         return NULL;
     }
     if(handle==(void*)~0LL) {