From: Andreas Färber Date: Sat, 9 Jun 2012 01:54:30 +0000 (+0200) Subject: qemu-log: Allow usage in libhw X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~4011 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b82321090743b238978024037dbdf878e701f9c;p=sdk%2Femulator%2Fqemu.git qemu-log: Allow usage in libhw 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 --- 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