]> git.ipfire.org Git - thirdparty/qemu.git/commit
error: Use error_reportf_err() where appropriate
authorMarkus Armbruster <armbru@redhat.com>
Tue, 5 May 2020 10:19:03 +0000 (12:19 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Sep 2020 00:06:19 +0000 (19:06 -0500)
commit558905635b5fedc96c0c3ea9c5ec9bd7d5faf1c9
tree936964fbb99bb29653e2569330944c8dd442701a
parentb17b3c209b182c00a93e1987e4c1078275d162ce
error: Use error_reportf_err() where appropriate

Replace

    error_report("...: %s", ..., error_get_pretty(err));

by

    error_reportf_err(err, "...: ", ...);

One of the replaced messages lacked a colon.  Add it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200505101908.6207-6-armbru@redhat.com>
(cherry picked from commit 5217f1887a8041c51495fbd5d3f767d96a242000)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
chardev/char-socket.c
hw/sd/pxa2xx_mmci.c
hw/sd/sd.c
hw/usb/dev-mtp.c
qemu-nbd.c
scsi/qemu-pr-helper.c