[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/5] global s/fflush(logfile)/qemu_log_flush()/
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 4/5] global s/fflush(logfile)/qemu_log_flush()/ |
Date: |
Tue, 13 Jan 2009 20:42:32 -0200 |
Signed-off-by: Eduardo Habkost <address@hidden>
---
block-raw-posix.c | 2 +-
exec.c | 2 +-
translate-all.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/block-raw-posix.c b/block-raw-posix.c
index a856e93..9f0f068 100644
--- a/block-raw-posix.c
+++ b/block-raw-posix.c
@@ -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
diff --git a/exec.c b/exec.c
index b6201c9..21cfa76 100644
--- a/exec.c
+++ b/exec.c
@@ -1641,7 +1641,7 @@ void cpu_abort(CPUState *env, const char *fmt, ...)
#else
log_cpu_state(env, 0);
#endif
- fflush(logfile);
+ qemu_log_flush();
qemu_log_close();
}
va_end(ap2);
diff --git a/translate-all.c b/translate-all.c
index 894062a..454ea7a 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -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);
log_disas(tb->tc_ptr, *gen_code_size_ptr);
qemu_log("\n");
- fflush(logfile);
+ qemu_log_flush();
}
#endif
return 0;
--
1.5.6.rc3.11.g5f54d