]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vfio: Add ioctl number to error report
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 2 Mar 2015 18:38:54 +0000 (11:38 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Mar 2015 18:38:54 +0000 (11:38 -0700)
This makes the error report more informative.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c

index c5d15510dd2b653bd2eeb41a4baf36e6a3f27d3f..c9df08d3537396f3a56a734d771997624cdcf5d3 100644 (file)
@@ -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) {
     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));
         }
     }
 
         }
     }