summaryrefslogtreecommitdiffstats
path: root/hw/i386/vmport.c
diff options
context:
space:
mode:
authorLaurent Vivier2017-12-21 22:11:03 +0100
committerPeter Maydell2017-12-21 23:52:28 +0100
commit43ab9a5376c95c61ae898a222c4d04bdf60e239b (patch)
tree8a418442eac1a6935068a4ea3756c0c7e87be289 /hw/i386/vmport.c
parentMerge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (diff)
downloadqemu-43ab9a5376c95c61ae898a222c4d04bdf60e239b.tar.gz
qemu-43ab9a5376c95c61ae898a222c4d04bdf60e239b.tar.xz
qemu-43ab9a5376c95c61ae898a222c4d04bdf60e239b.zip
hw/i386/vmport: fix missing definitions with non-log trace backends
When compiled with anything other than the 'log' trace backend, we have: error: implicit declaration of function 'qemu_log_mask' error: 'LOG_UNIMP' undeclared (first use in this function) This patch adds the missing include. Fixes: 7299e1a411 ("hw/i386/vmport: replace fprintf() by trace events or LOG_UNIMP") Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-id: 20171221211103.30311-1-laurent@vivier.eu [PMM: fixed commit message description of when problem occurs] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/i386/vmport.c')
-rw-r--r--hw/i386/vmport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c
index 9b8c68806e..116aa09819 100644
--- a/hw/i386/vmport.c
+++ b/hw/i386/vmport.c
@@ -27,6 +27,7 @@
#include "hw/i386/pc.h"
#include "sysemu/hw_accel.h"
#include "hw/qdev.h"
+#include "qemu/log.h"
#include "trace.h"
#define VMPORT_CMD_GETVERSION 0x0a