diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-02-08 21:22:15 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-11 08:13:18 -0600 |
commit | 1a9522cc6ea04968e1169f0195952d0029d5dbb9 (patch) | |
tree | 45345308cb036f4d5999708c06083ba2683aa390 | |
parent | 474c21349fdde3c477357c2317ca6ad50872827b (diff) |
error: Clean up abuse of error_report() for help
Use error_printf() instead, so the help gets presented more nicely.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-id: 1360354939-10994-3-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | hw/vfio_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c index 66537b7eb5..a934f1308e 100644 --- a/hw/vfio_pci.c +++ b/hw/vfio_pci.c @@ -1806,9 +1806,9 @@ static int vfio_get_device(VFIOGroup *group, const char *name, VFIODevice *vdev) ret = ioctl(group->fd, VFIO_GROUP_GET_DEVICE_FD, name); if (ret < 0) { - error_report("vfio: error getting device %s from group %d: %m\n", + error_report("vfio: error getting device %s from group %d: %m", name, group->groupid); - error_report("Verify all devices in group %d are bound to vfio-pci " + error_printf("Verify all devices in group %d are bound to vfio-pci " "or pci-stub and not already in use\n", group->groupid); return ret; } |