mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
b8a173b25c
commit
46f770d4a5
|
@ -932,8 +932,8 @@ static int vfio_container_do_ioctl(AddressSpace *as, int32_t groupid,
|
||||||
if (group->container) {
|
if (group->container) {
|
||||||
ret = ioctl(container->fd, req, param);
|
ret = ioctl(container->fd, req, param);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
error_report("vfio: failed to ioctl container: ret=%d, %s",
|
error_report("vfio: failed to ioctl %d to container: ret=%d, %s",
|
||||||
ret, strerror(errno));
|
_IOC_NR(req) - VFIO_BASE, ret, strerror(errno));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue