[6339] global s/fflush(logfile)/qemu_log_flush()/ (Eduardo Habkost)
Revision: 6339
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6339 Author: aliguori Date: 2009-01-15 22:35:09 +0000 (Thu, 15 Jan 2009)
Log Message:
-----------
global s/fflush(logfile)/qemu_log_flush()/ (Eduardo Habkost)
Signed-off-by Eduardo Habkost <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/block-raw-posix.c
trunk/exec.c
trunk/translate-all.c
Modified: trunk/block-raw-posix.c
===================================================================
block-raw-posix.c +1 -1
@@ -68,7 +68,7 @@//#define DEBUG_BLOCK #if defined(DEBUG_BLOCK ) #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 #define DEBUG_BLOCK_PRINT(formatCstr, args...)#endif
Modified: trunk/exec.c
===================================================================
exec.c +1 -1
@@ -1641,7 +1641,7 @@#else log_cpu_state (env,0 );#endif -fflush (logfile); +qemu_log_flush ();qemu_log_close (); }va_end (ap2);
Modified: trunk/translate-all.c
===================================================================
translate-all.c +1 -1
@@ -131,7 +131,7 @@qemu_log ("OUT: [size=%d]\n" , *gen_code_size_ptr);log_disas (tb->tc_ptr, *gen_code_size_ptr);qemu_log ("\n" ); - fflush(logfile); + qemu_log_flush(); }#endif return 0 ;