summaryrefslogtreecommitdiffstats
path: root/hw/vfio/common.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2015-03-02 19:38:54 +0100
committerAlex Williamson2015-03-02 19:38:54 +0100
commit46f770d4a55ceb21583ac573326f81901a3f1723 (patch)
tree39df0d027f68ca89e606bfc104178a860d55b047 /hw/vfio/common.c
parentMerge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into st... (diff)
downloadqemu-46f770d4a55ceb21583ac573326f81901a3f1723.tar.gz
qemu-46f770d4a55ceb21583ac573326f81901a3f1723.tar.xz
qemu-46f770d4a55ceb21583ac573326f81901a3f1723.zip
vfio: Add ioctl number to error report
This makes the error report more informative. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/vfio/common.c')
-rw-r--r--hw/vfio/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index c5d15510dd..c9df08d353 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -932,8 +932,8 @@ static int vfio_container_do_ioctl(AddressSpace *as, int32_t groupid,
if (group->container) {
ret = ioctl(container->fd, req, param);
if (ret < 0) {
- error_report("vfio: failed to ioctl container: ret=%d, %s",
- ret, strerror(errno));
+ error_report("vfio: failed to ioctl %d to container: ret=%d, %s",
+ _IOC_NR(req) - VFIO_BASE, ret, strerror(errno));
}
}