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;
|
||||
ret = ioctl(vbasedev->fd, VFIO_DEVICE_GET_IRQ_INFO, &irq);
|
||||
if (ret) {
|
||||
error_printf("vfio: error getting device %s irq info",
|
||||
error_report("vfio: error getting device %s irq info",
|
||||
vbasedev->name);
|
||||
goto irq_err;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue