mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
vfio: Use error_report() instead of error_printf() for errors
Cc: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1470224274-31522-4-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
a47eb01098
commit
fea1c0999a
@ -496,7 +496,7 @@ static int vfio_populate_device(VFIODevice *vbasedev)
|
|||||||
irq.index = i;
|
irq.index = i;
|
||||||
ret = ioctl(vbasedev->fd, VFIO_DEVICE_GET_IRQ_INFO, &irq);
|
ret = ioctl(vbasedev->fd, VFIO_DEVICE_GET_IRQ_INFO, &irq);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
error_printf("vfio: error getting device %s irq info",
|
error_report("vfio: error getting device %s irq info",
|
||||||
vbasedev->name);
|
vbasedev->name);
|
||||||
goto irq_err;
|
goto irq_err;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user