pci-assign: Clean up "Failed to assign" error messages
commitc3d2d68ad68d044417bbecaa0ebb0aa0dfb44b5f
authorMarkus Armbruster <armbru@redhat.com>
Fri, 18 Dec 2015 15:35:22 +0000 (18 16:35 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 13 Jan 2016 14:16:18 +0000 (13 15:16 +0100)
tree9970e69f922537827212171cf917cc72157ea734
parentd28d737fb9b1f6c2a58821f8a4640adecf99249b
pci-assign: Clean up "Failed to assign" error messages

The arguments of error_setg() & friends should yield a short error
string without newlines.

Two places try to append additional help to the error message by
embedding newlines in the error string.  That's nice, but let's do it
the right way, with error_append_hint().

Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1450452927-8346-20-git-send-email-armbru@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
hw/i386/kvm/pci-assign.c