qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6339] global s/fflush(logfile)/qemu_log_flush()/ (Eduardo Habkost)
@ 2009-01-15 22:35 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-01-15 22:35 UTC (permalink / raw)
  To: qemu-devel

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 <ehabkost@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/block-raw-posix.c
    trunk/exec.c
    trunk/translate-all.c

Modified: trunk/block-raw-posix.c
===================================================================
--- trunk/block-raw-posix.c	2009-01-15 22:34:14 UTC (rev 6338)
+++ trunk/block-raw-posix.c	2009-01-15 22:35:09 UTC (rev 6339)
@@ -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
===================================================================
--- trunk/exec.c	2009-01-15 22:34:14 UTC (rev 6338)
+++ trunk/exec.c	2009-01-15 22:35:09 UTC (rev 6339)
@@ -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
===================================================================
--- trunk/translate-all.c	2009-01-15 22:34:14 UTC (rev 6338)
+++ trunk/translate-all.c	2009-01-15 22:35:09 UTC (rev 6339)
@@ -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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-15 22:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-15 22:35 [Qemu-devel] [6339] global s/fflush(logfile)/qemu_log_flush()/ (Eduardo Habkost) Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).