Commit 1a9522cc authored by Markus Armbruster's avatar Markus Armbruster Committed by Anthony Liguori
Browse files

error: Clean up abuse of error_report() for help



Use error_printf() instead, so the help gets presented more nicely.

Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Message-id: 1360354939-10994-3-git-send-email-armbru@redhat.com
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 474c2134
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
    }