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>
This commit is contained in:
Andreas Färber 2012-06-09 03:54:30 +02:00 committed by Edgar E. Iglesias
parent 9bbfbb61af
commit 3b82321090

View File

@ -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