Index: qemu-log.h =================================================================== --- qemu-log.h (revision 6367) +++ qemu-log.h (working copy) @@ -63,10 +63,12 @@ disas(logfile, (start), (len)) /* page_dump() output to the log file: */ -#define log_page_dump() page_dump(logfile) +#define log_page_dump() do { \ + if (logfile) \ + page_dump(logfile); \ + } while (0) - /* Maintenance: */ /* fflush() the log file */