Commit 31b1a7b4f5f87a239ee62feb8ba5bd00d6e26744

Authored by aliguori
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
block-raw-posix.c
@@ -68,7 +68,7 @@ @@ -68,7 +68,7 @@
68 //#define DEBUG_BLOCK 68 //#define DEBUG_BLOCK
69 #if defined(DEBUG_BLOCK) 69 #if defined(DEBUG_BLOCK)
70 #define DEBUG_BLOCK_PRINT(formatCstr, args...) do { if (qemu_log_enabled()) \ 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 #else 72 #else
73 #define DEBUG_BLOCK_PRINT(formatCstr, args...) 73 #define DEBUG_BLOCK_PRINT(formatCstr, args...)
74 #endif 74 #endif
@@ -1641,7 +1641,7 @@ void cpu_abort(CPUState *env, const char *fmt, ...) @@ -1641,7 +1641,7 @@ void cpu_abort(CPUState *env, const char *fmt, ...)
1641 #else 1641 #else
1642 log_cpu_state(env, 0); 1642 log_cpu_state(env, 0);
1643 #endif 1643 #endif
1644 - fflush(logfile); 1644 + qemu_log_flush();
1645 qemu_log_close(); 1645 qemu_log_close();
1646 } 1646 }
1647 va_end(ap2); 1647 va_end(ap2);
translate-all.c
@@ -131,7 +131,7 @@ int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr) @@ -131,7 +131,7 @@ int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr)
131 qemu_log("OUT: [size=%d]\n", *gen_code_size_ptr); 131 qemu_log("OUT: [size=%d]\n", *gen_code_size_ptr);
132 log_disas(tb->tc_ptr, *gen_code_size_ptr); 132 log_disas(tb->tc_ptr, *gen_code_size_ptr);
133 qemu_log("\n"); 133 qemu_log("\n");
134 - fflush(logfile); 134 + qemu_log_flush();
135 } 135 }
136 #endif 136 #endif
137 return 0; 137 return 0;