qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/3] qemu-log: Allow usage in libhw


From: Andreas Färber
Subject: [Qemu-devel] [PATCH 2/3] qemu-log: Allow usage in libhw
Date: Sat, 9 Jun 2012 03:54:30 +0200

Add #ifdef to avoid complaint about use of poisoned "env".

Signed-off-by: Blue Swirl <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
 qemu-log.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/qemu-log.h b/qemu-log.h
index fccfb110..a9b3ca4 100644
--- a/qemu-log.h
+++ b/qemu-log.h
@@ -50,6 +50,7 @@ extern int loglevel;
 
 /* Special cases: */
 
+#ifdef NEED_CPU_H
 /* cpu_dump_state() logging functions: */
 #define log_cpu_state(env, f) cpu_dump_state((env), logfile, fprintf, (f));
 #define log_cpu_state_mask(b, env, f) do {           \
@@ -64,6 +65,7 @@ extern int loglevel;
 
 /* page_dump() output to the log file: */
 #define log_page_dump() page_dump(logfile)
+#endif
 
 
 
-- 
1.7.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]