From patchwork Fri Feb 8 16:17:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [for-1.4,v2,2/6] error: Clean up abuse of error_report() for help Date: Fri, 08 Feb 2013 06:17:08 -0000 From: Markus Armbruster X-Patchwork-Id: 219221 Message-Id: <1360340232-4670-3-git-send-email-armbru@redhat.com> To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, peter.maydell@linaro.org, lcapitulino@redhat.com Use error_printf() instead, so the help gets presented more nicely. Signed-off-by: Markus Armbruster --- hw/vfio_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c index 66537b7..a934f13 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; }