]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Suppress unhelpful extra errors in bdrv_img_create()
authorMarkus Armbruster <armbru@redhat.com>
Thu, 12 Feb 2015 16:49:02 +0000 (17:49 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 26 Feb 2015 13:48:31 +0000 (14:48 +0100)
commit6be4194b9215ed29f258543ce34a1b4b2003864d
treeb729e35973c623d5bb9850b92d00d7ed43980a19
parent6750e795b167e3defab36502e61b8c57ede119eb
block: Suppress unhelpful extra errors in bdrv_img_create()

bdrv_img_create() uses qemu_opt_set(), which reports errors with
qerror_report_err().  Its error messages aren't helpful here, the
caller reports one that actually makes sense.  I don't know how to
trigger the error conditions, though.

Switch to qemu_opt_set_err() to get rid of the unwanted messages.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c