aboutsummaryrefslogtreecommitdiff
path: root/include/hw/vfio
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2016-10-17 10:57:56 -0600
committerAlex Williamson <alex.williamson@redhat.com>2016-10-17 10:57:56 -0600
commit426ec9049e29397af95f8c28e020590bd1fe57dd (patch)
tree4558316ca3668168184dbc01f9552382f2446053 /include/hw/vfio
parent0975b8b823a888d474fa33821dfe84e6904db197 (diff)
downloadqemu-426ec9049e29397af95f8c28e020590bd1fe57dd.zip
qemu-426ec9049e29397af95f8c28e020590bd1fe57dd.tar.gz
qemu-426ec9049e29397af95f8c28e020590bd1fe57dd.tar.bz2
vfio/pci: Use local error object in vfio_initfn
To prepare for migration to realize, let's use a local error object in vfio_initfn. Also let's use the same error prefix for all error messages. On top of the 1-1 conversion, we start using a common error prefix for all error messages. We also introduce a similar warning prefix which will be used later on. Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/hw/vfio')
-rw-r--r--include/hw/vfio/vfio-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
index c17602e..b26b6cf 100644
--- a/include/hw/vfio/vfio-common.h
+++ b/include/hw/vfio/vfio-common.h
@@ -30,6 +30,9 @@
#include <linux/vfio.h>
#endif
+#define ERR_PREFIX "vfio error: %s: "
+#define WARN_PREFIX "vfio warning: %s: "
+
/*#define DEBUG_VFIO*/
#ifdef DEBUG_VFIO
#define DPRINTF(fmt, ...) \