]> git.proxmox.com Git - qemu.git/blobdiff - linux-user/main.c
qemu-log: cleanup
[qemu.git] / linux-user / main.c
index 49108b81d3bf90457447ca16b475c1cb63877f60..d0e0e4fc6a80c68a4972562f32c8748934127c72 100644 (file)
@@ -1306,8 +1306,9 @@ do {                                                                    \
     fprintf(stderr, fmt , ## __VA_ARGS__);                              \
     cpu_dump_state(env, stderr, fprintf, 0);                            \
     qemu_log(fmt, ## __VA_ARGS__);                                      \
-    if (logfile)                                                        \
+    if (qemu_log_enabled()) {                                           \
         log_cpu_state(env, 0);                                          \
+    }                                                                   \
 } while (0)
 
 static int do_store_exclusive(CPUPPCState *env)