diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-01-22 02:08:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-21 19:08:09 +0100 |
| commit | 314edea645acacf03930af17aa01783ca735306a (patch) | |
| tree | 8b6379b6bece743b38e4b3dc88fbdc6a869d4fc6 /src/wrapped | |
| parent | fe28bd93bd2ddf2737960cea84ff406a3f3922dc (diff) | |
| download | box64-314edea645acacf03930af17aa01783ca735306a.tar.gz box64-314edea645acacf03930af17aa01783ca735306a.zip | |
Added [BOX64] prefix for all the stdout logs (#2279)
* Added [BOX64] prefix for all the stdout logs * Remove some hardcoded prefix * review
Diffstat (limited to 'src/wrapped')
| -rw-r--r-- | src/wrapped/wrappedgstreamer.c | 4 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 10 | ||||
| -rw-r--r-- | src/wrapped/wrappedwaylandclient.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/wrapped/wrappedgstreamer.c b/src/wrapped/wrappedgstreamer.c index 9e5b8198..5c411f70 100644 --- a/src/wrapped/wrappedgstreamer.c +++ b/src/wrapped/wrappedgstreamer.c @@ -950,7 +950,7 @@ static void register_plugins_from_folder(x64emu_t* emu, const char* folder) } void* f_init = handle?(is_native?dlsym(handle, regfunc_name):my_dlsym(emu, handle, regfunc_name)):NULL; if(f_init) { - printf_log(LOG_DEBUG, "BOX64: Will registering %sgstplugin %s\n", is_native?"native ":"", filename); + printf_log(LOG_DEBUG, "Will registering %sgstplugin %s\n", is_native?"native ":"", filename); if(is_native) ((vFv_t)(f_init))(); else @@ -962,7 +962,7 @@ static void register_plugins_from_folder(x64emu_t* emu, const char* folder) my->plugins[my->plugin_cnt].is_native = is_native; my->plugins[my->plugin_cnt++].handle = handle; } else { - printf_log(LOG_DEBUG, "BOX64: Failled to register %sgstplugin %s, name=%s, handle=%p\n", is_native?"native ":"", filename, name, handle); + printf_log(LOG_DEBUG, "Failled to register %sgstplugin %s, name=%s, handle=%p\n", is_native?"native ":"", filename, name, handle); } if(handle && !f_init) { is_native?dlclose(handle):my_dlclose(emu, handle); diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 2b4293cd..7afa134f 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -528,7 +528,7 @@ pid_t EXPORT my_fork(x64emu_t* emu) if(type == EMUTYPE_MAIN) thread_set_emu(emu); if(v<0) { - printf_log(LOG_NONE, "BOX64: Warning, fork errored... (%d)\n", v); + printf_log(LOG_NONE, "Warning, fork errored... (%d)\n", v); // error... } else if(v>0) { // execute atforks parent functions @@ -3012,7 +3012,7 @@ EXPORT void* my_mmap64(x64emu_t* emu, void *addr, size_t length, int prot, int f ssize_t r = readlink(buf, filename, sizeof(filename)-1); if(r!=-1) filename[r]=0; if(r>0 && strlen(filename)>strlen("UnityPlayer.dll") && !strcasecmp(filename+strlen(filename)-strlen("UnityPlayer.dll"), "UnityPlayer.dll")) { - printf_log(LOG_INFO, "BOX64: Detected UnityPlayer.dll\n"); + printf_log(LOG_INFO, "Detected UnityPlayer.dll\n"); #ifdef DYNAREC if(!BOX64ENV(dynarec_strongmem)) SET_BOX64ENV(dynarec_strongmem, 1); #endif @@ -3776,16 +3776,16 @@ EXPORT void my__exit(x64emu_t* emu, int code) __attribute__((alias("my_exit"))); EXPORT int my_prctl(x64emu_t* emu, int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5) { if(option==PR_SET_NAME) { - printf_log(LOG_DEBUG, "BOX64: set process name to \"%s\"\n", (char*)arg2); + printf_log(LOG_DEBUG, "set process name to \"%s\"\n", (char*)arg2); ApplyEnvFileEntry((char*)arg2); size_t l = strlen((char*)arg2); if(l>4 && !strcasecmp((char*)arg2+l-4, ".exe")) { - printf_log(LOG_DEBUG, "BOX64: hacking orig command line to \"%s\"\n", (char*)arg2); + printf_log(LOG_DEBUG, "hacking orig command line to \"%s\"\n", (char*)arg2); strcpy(my_context->orig_argv[0], (char*)arg2); } } if(option==PR_SET_SECCOMP) { - printf_log(LOG_INFO, "BOX64: ignoring prctl(PR_SET_SECCOMP, ...)\n"); + printf_log(LOG_INFO, "ignoring prctl(PR_SET_SECCOMP, ...)\n"); return 0; } return prctl(option, arg2, arg3, arg4, arg5); diff --git a/src/wrapped/wrappedwaylandclient.c b/src/wrapped/wrappedwaylandclient.c index 737a2418..cc88f871 100644 --- a/src/wrapped/wrappedwaylandclient.c +++ b/src/wrapped/wrappedwaylandclient.c @@ -597,7 +597,7 @@ EXPORT int my_wl_proxy_add_listener(x64emu_t* emu, void* proxy, void** l, void* } else if(!strcmp(proxy_name, "zxdg_output_v1")) { l = find_zxdg_output_v1_listener_Fct(l); } else - printf_log(LOG_INFO, "BOX64: Error, Wayland-client, add_listener to %s unknown, will crash soon!\n", proxy_name); + printf_log(LOG_INFO, "Error, Wayland-client, add_listener to %s unknown, will crash soon!\n", proxy_name); return my->wl_proxy_add_listener(proxy, l, data); } |