Commit 31b1a7b4f5f87a239ee62feb8ba5bd00d6e26744
1 parent
93fcfe39
global s/fflush(logfile)/qemu_log_flush()/ (Eduardo Habkost)
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6339 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
3 additions
and
3 deletions
block-raw-posix.c
... | ... | @@ -68,7 +68,7 @@ |
68 | 68 | //#define DEBUG_BLOCK |
69 | 69 | #if defined(DEBUG_BLOCK) |
70 | 70 | #define DEBUG_BLOCK_PRINT(formatCstr, args...) do { if (qemu_log_enabled()) \ |
71 | - { qemu_log(formatCstr, ##args); fflush(logfile); } } while (0) | |
71 | + { qemu_log(formatCstr, ##args); qemu_log_flush(); } } while (0) | |
72 | 72 | #else |
73 | 73 | #define DEBUG_BLOCK_PRINT(formatCstr, args...) |
74 | 74 | #endif | ... | ... |
exec.c
translate-all.c
... | ... | @@ -131,7 +131,7 @@ int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr) |
131 | 131 | qemu_log("OUT: [size=%d]\n", *gen_code_size_ptr); |
132 | 132 | log_disas(tb->tc_ptr, *gen_code_size_ptr); |
133 | 133 | qemu_log("\n"); |
134 | - fflush(logfile); | |
134 | + qemu_log_flush(); | |
135 | 135 | } |
136 | 136 | #endif |
137 | 137 | return 0; | ... | ... |