]> git.proxmox.com Git - qemu.git/commitdiff
error: Clean up abuse of error_report() for help
authorMarkus Armbruster <armbru@redhat.com>
Fri, 8 Feb 2013 20:22:15 +0000 (21:22 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 11 Feb 2013 14:13:18 +0000 (08:13 -0600)
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>
hw/vfio_pci.c

index 66537b7eb5fd8133492abd36b38356efb2c19012..a934f1308eb41edf3428f4caa4f4209dd8fdeb58 100644 (file)
@@ -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;
     }