aboutsummaryrefslogtreecommitdiff
path: root/qemu-log.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-06-09 03:54:30 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2012-06-15 12:44:26 +0200
commit3b82321090743b238978024037dbdf878e701f9c (patch)
tree8a64cf846bf00584ad0bd8620823954672b63909 /qemu-log.h
parent9bbfbb61afab2e54e476da6f46ef8f7ee25ad750 (diff)
qemu-log: Allow usage in libhw
Add #ifdef to avoid complaint about use of poisoned "env". Signed-off-by: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'qemu-log.h')
-rw-r--r--qemu-log.h2
1 files changed, 2 insertions, 0 deletions
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