From 3b82321090743b238978024037dbdf878e701f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 9 Jun 2012 03:54:30 +0200 Subject: qemu-log: Allow usage in libhw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add #ifdef to avoid complaint about use of poisoned "env". Signed-off-by: Blue Swirl Signed-off-by: Andreas Färber Signed-off-by: Edgar E. Iglesias --- qemu-log.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qemu-log.h') diff --git a/qemu-log.h b/qemu-log.h index fccfb1100e..a9b3ca4e0b 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 -- cgit v1.2.1