Convert references to logfile/loglevel to use qemu_log*() macros
[qemu] / vl.c
diff --git a/vl.c b/vl.c
index d099658..0482d97 100644 (file)
--- a/vl.c
+++ b/vl.c
 
 
 #ifdef DEBUG_IOPORT
-#  define LOG_IOPORT(...) do {           \
-     if (loglevel & CPU_LOG_IOPORT)      \
-       fprintf(logfile, ## __VA_ARGS__); \
-   } while (0)
+#  define LOG_IOPORT(...) qemu_log_mask(CPU_LOG_IOPORT, ## __VA_ARGS__)
 #else
 #  define LOG_IOPORT(...) do { } while (0)
 #endif