OSDN Git Service

error: Use error_reportf_err() where appropriate
authorMarkus Armbruster <armbru@redhat.com>
Tue, 5 May 2020 10:19:03 +0000 (12:19 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 27 May 2020 05:45:30 +0000 (07:45 +0200)
commit5217f1887a8041c51495fbd5d3f767d96a242000
tree178772e59bd02dca6cfefe773d24974f8120f517
parentd01127584e70f9242d3dd9bf4c0bdc1980254713
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>
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