qemu-e2k/hw/usb
Markus Armbruster c29b77f955 error: Use error_reportf_err() where it makes obvious sense
Done with this Coccinelle semantic patch

    @@
    expression FMT, E, S;
    expression list ARGS;
    @@
    -    error_report(FMT, ARGS, error_get_pretty(E));
    +    error_reportf_err(E, FMT/*@@@*/, ARGS);
    (
    -    error_free(E);
    |
	 exit(S);
    |
	 abort();
    )

followed by a replace of '%s"/*@@@*/' by '"' and some line rewrapping,
because I can't figure out how to make Coccinelle transform strings.

We now use the error whole instead of just its message obtained with
error_get_pretty().  This avoids suppressing its hint (see commit
50b7b00), but I can't see how the errors touched in this commit could
come with hints.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1450452927-8346-12-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2016-01-13 15:16:17 +01:00
..
bus.c error: Use error_reportf_err() where it makes obvious sense 2016-01-13 15:16:17 +01:00
ccid-card-emulated.c usb: Use g_new() & friends where that makes obvious sense 2015-11-06 15:42:38 +03:00
ccid-card-passthru.c libcacard: use the standalone project 2015-09-23 23:34:17 +02:00
ccid.h
combined-packet.c
core.c
desc-msos.c
desc.c
desc.h
dev-audio.c usb-audio: increate default buffer size 2015-10-20 09:15:23 +02:00
dev-bluetooth.c
dev-hid.c
dev-hub.c
dev-mtp.c usb-mtp: fix call to trace function 2016-01-08 09:25:50 +01:00
dev-network.c usbnet: Drop usbnet_can_receive 2015-07-27 14:12:18 +01:00
dev-serial.c Include monitor/monitor.h exactly where needed 2015-06-22 18:20:41 +02:00
dev-smartcard-reader.c usb-ccid: add missing wakeup calls 2015-07-17 13:20:53 +02:00
dev-storage.c hw/usb-storage: Check whether BB is inserted 2015-10-23 18:18:23 +02:00
dev-uas.c
dev-wacom.c
hcd-ehci-pci.c maint: avoid useless "if (foo) free(foo)" pattern 2015-09-11 10:21:38 +03:00
hcd-ehci-sysbus.c
hcd-ehci.c ehci: make idt processing more robust 2015-12-15 09:49:03 +01:00
hcd-ehci.h Include monitor/monitor.h exactly where needed 2015-06-22 18:20:41 +02:00
hcd-musb.c
hcd-ohci.c ohci: clear pending SOF on suspend 2016-01-08 09:29:24 +01:00
hcd-uhci.c
hcd-xhci.c usb: Use g_new() & friends where that makes obvious sense 2015-11-06 15:42:38 +03:00
host-legacy.c
host-libusb.c usb-host: fix usb3ep0quirk test 2015-11-03 11:56:23 +01:00
host-stub.c
host.h
libhw.c
Makefile.objs libcacard: use the standalone project 2015-09-23 23:34:17 +02:00
quirks-ftdi-ids.h
quirks-pl2303-ids.h
quirks.c
quirks.h
redirect.c usb: Use g_new() & friends where that makes obvious sense 2015-11-06 15:42:38 +03:00