error: Use error_report_err() where appropriate
commit565f65d271984a32eed2c324ff6ef8be33f7f3d2
authorMarkus Armbruster <armbru@redhat.com>
Thu, 12 Feb 2015 12:55:05 +0000 (12 13:55 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 18 Feb 2015 09:51:09 +0000 (18 10:51 +0100)
tree0adbc6737d2dc268c00166eb9b9dc89caa4ea28b
parent2ee2f1e41517efa7b5dd604a68ceca9b1377de2c
error: Use error_report_err() where appropriate

Coccinelle semantic patch:

    @@
    expression E;
    @@
    -    error_report("%s", error_get_pretty(E));
    -    error_free(E);
    +    error_report_err(E);
    @@
    expression E, S;
    @@
    -    error_report("%s", error_get_pretty(E));
    +    error_report_err(E);
    (
         exit(S);
    |
         abort();
    )

Trivial manual touch-ups in block/sheepdog.c.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
31 files changed:
arch_init.c
block/sheepdog.c
blockdev.c
hw/arm/exynos4210.c
hw/arm/highbank.c
hw/arm/integratorcp.c
hw/arm/realview.c
hw/arm/versatilepb.c
hw/arm/vexpress.c
hw/arm/xilinx_zynq.c
hw/block/virtio-blk.c
hw/char/serial.c
hw/i386/kvm/pci-assign.c
hw/i386/pc.c
hw/i386/smbios.c
hw/ide/qdev.c
hw/pci/pci-hotplug-old.c
hw/pci/pci.c
hw/usb/dev-network.c
hw/usb/host-libusb.c
hw/usb/redirect.c
qemu-char.c
qemu-img.c
qemu-io.c
qemu-nbd.c
qom/cpu.c
target-i386/cpu.c
target-sparc/cpu.c
util/error.c
util/qemu-config.c
vl.c