about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-07-31 14:06:56 +0800
committerGitHub <noreply@github.com>2025-07-31 08:06:56 +0200
commit97a78f2d98d7a144f2ca0bada5878b6bed93fad5 (patch)
tree09c5e6d2e2f2caf28140ee98763288b5c8f1b88f /src
parentec0e1077c93a13e96ea4e7556102dacd5b1cb6f1 (diff)
downloadbox64-97a78f2d98d7a144f2ca0bada5878b6bed93fad5.tar.gz
box64-97a78f2d98d7a144f2ca0bada5878b6bed93fad5.zip
Minor improvements to trace logging (#2861)
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run_private.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c
index 37a64f4c..25646d98 100644
--- a/src/emu/x64run_private.c
+++ b/src/emu/x64run_private.c
@@ -63,19 +63,19 @@ void PrintTrace(x64emu_t* emu, uintptr_t ip, int dynarec)
 #endif
         printf_log(LOG_NONE, "%s", DumpCPURegs(emu, ip, is32bits));
         if(R_RIP==0) {
-            printf_log(LOG_NONE, "Running at NULL address\n");
+            printf_log_prefix(0, LOG_NONE, "Running at NULL address\n");
             mutex_unlock(&my_context->mutex_trace);
             return;
         }
         if (PK(0) == 0xcc && IsBridgeSignature(PK(1), PK(2))) {
             uint64_t a = *(uint64_t*)(ip+3);
             if(a==0) {
-                printf_log(LOG_NONE, "%p: Exit x86emu\n", (void*)ip);
+                printf_log_prefix(0, LOG_NONE, "%p: Exit x86emu\n", (void*)ip);
             } else {
-                printf_log(LOG_NONE, "%p: Native call to %p => %s\n", (void*)ip, (void*)a, GetNativeName(*(void**)(ip+11)));
+                printf_log_prefix(0, LOG_NONE, "%p: Native call to %p => %s\n", (void*)ip, (void*)a, GetNativeName(*(void**)(ip+11)));
             }
         } else {
-            printf_log(LOG_NONE, "%s", DecodeX64Trace(is32bits ? my_context->dec32 : my_context->dec, ip, 1));
+            printf_log_prefix(0, LOG_NONE, "%s", DecodeX64Trace(is32bits ? my_context->dec32 : my_context->dec, ip, 1));
             uint8_t peek = PK(0);
             rex_t rex = {0};
             if(!is32bits && peek>=0x40 && peek<=0x4f) {