diff options
| author | Eric Auger | 2016-10-17 18:57:56 +0200 |
|---|---|---|
| committer | Alex Williamson | 2016-10-17 18:57:56 +0200 |
| commit | 426ec9049e29397af95f8c28e020590bd1fe57dd (patch) | |
| tree | 4558316ca3668168184dbc01f9552382f2446053 /include/hw/vfio | |
| parent | Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging (diff) | |
| download | qemu-426ec9049e29397af95f8c28e020590bd1fe57dd.tar.gz qemu-426ec9049e29397af95f8c28e020590bd1fe57dd.tar.xz qemu-426ec9049e29397af95f8c28e020590bd1fe57dd.zip | |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index c17602e533..b26b6cf753 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, ...) \ |
