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
master
aliguori 2009-01-15 22:35:09 +00:00
parent 93fcfe39a0
commit 31b1a7b4f5
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@
//#define DEBUG_BLOCK //#define DEBUG_BLOCK
#if defined(DEBUG_BLOCK) #if defined(DEBUG_BLOCK)
#define DEBUG_BLOCK_PRINT(formatCstr, args...) do { if (qemu_log_enabled()) \ #define DEBUG_BLOCK_PRINT(formatCstr, args...) do { if (qemu_log_enabled()) \
{ qemu_log(formatCstr, ##args); fflush(logfile); } } while (0) { qemu_log(formatCstr, ##args); qemu_log_flush(); } } while (0)
#else #else
#define DEBUG_BLOCK_PRINT(formatCstr, args...) #define DEBUG_BLOCK_PRINT(formatCstr, args...)
#endif #endif

2
exec.c
View File

@ -1641,7 +1641,7 @@ void cpu_abort(CPUState *env, const char *fmt, ...)
#else #else
log_cpu_state(env, 0); log_cpu_state(env, 0);
#endif #endif
fflush(logfile); qemu_log_flush();
qemu_log_close(); qemu_log_close();
} }
va_end(ap2); va_end(ap2);

View File

@ -131,7 +131,7 @@ int cpu_gen_code(CPUState *env, TranslationBlock *tb, int *gen_code_size_ptr)
qemu_log("OUT: [size=%d]\n", *gen_code_size_ptr); qemu_log("OUT: [size=%d]\n", *gen_code_size_ptr);
log_disas(tb->tc_ptr, *gen_code_size_ptr); log_disas(tb->tc_ptr, *gen_code_size_ptr);
qemu_log("\n"); qemu_log("\n");
fflush(logfile); qemu_log_flush();
} }
#endif #endif
return 0; return 0;