qemu/hw/usb
Markus Armbruster e43bfd9c87 error: Use error_prepend() where it makes obvious sense
Done with this Coccinelle semantic patch

    @@
    expression FMT, E1, E2;
    expression list ARGS;
    @@
    -    error_setg(E1, FMT, ARGS, error_get_pretty(E2));
    +    error_propagate(E1, E2);/*###*/
    +    error_prepend(E1, FMT/*@@@*/, ARGS);

followed by manual cleanup, first because I can't figure out how to
make Coccinelle transform strings, and second to get rid of now
superfluous error_propagate().

We now use or propagate the original 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.  It also improves the message
printed with &error_abort when we screw up (see commit 1e9b65b).

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2016-01-13 15:16:17 +01:00
..
bus.c error: Use error_prepend() 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 hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
combined-packet.c usb: Fix iovec memleak on combined-packet free 2013-09-19 11:28:40 +02:00
core.c usb: Remove unused functions 2015-04-30 16:05:48 +03:00
desc-msos.c usb: Pair g_malloc() with g_free(), not free() 2015-02-10 09:27:20 +03:00
desc.c usb: add usb_pick_speed 2014-06-02 16:29:00 +02:00
desc.h usb: add CompatibleID support to msos 2014-04-22 12:40:57 +02:00
dev-audio.c usb-audio: increate default buffer size 2015-10-20 09:15:23 +02:00
dev-bluetooth.c usb: usb-bt QOMify 2015-05-08 13:01:06 +02:00
dev-hid.c usb: usb-hid QOMify 2015-05-08 13:01:06 +02:00
dev-hub.c usb: usb-hub QOMify 2015-05-08 13:01:07 +02:00
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 usb: usb-uas QOMify 2015-05-08 13:01:07 +02:00
dev-wacom.c usb: usb-wacom-tablet QOMify 2015-05-08 13:01:07 +02:00
hcd-ehci-pci.c maint: avoid useless "if (foo) free(foo)" pattern 2015-09-11 10:21:38 +03:00
hcd-ehci-sysbus.c ehci: fix segfault when hot-unplugging ehci controller 2015-03-20 08:50:12 +01:00
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 Fix remaining warnings from Sparse (void return) 2015-03-19 11:11:55 +03:00
hcd-ohci.c ohci: clear pending SOF on suspend 2016-01-08 09:29:24 +01:00
hcd-uhci.c uhci: controller is halted after reset 2015-05-08 13:01:08 +02:00
hcd-xhci.c usb: Use g_new() & friends where that makes obvious sense 2015-11-06 15:42:38 +03:00
host-legacy.c usb: Improve -usbdevice error reporting a bit 2015-02-18 10:53:10 +01:00
host-libusb.c usb-host: fix usb3ep0quirk test 2015-11-03 11:56:23 +01:00
host-stub.c hmp: Name HMP info handler functions hmp_info_SUBCOMMAND() 2015-02-18 11:58:50 +01:00
host.h usb-host: move legacy cmd line bits 2013-02-19 12:30:05 +01:00
libhw.c dma: eliminate DMAContext 2013-06-20 16:39:52 +02:00
Makefile.objs libcacard: use the standalone project 2015-09-23 23:34:17 +02:00
quirks-ftdi-ids.h usbredir: Add support for buffered bulk input (v2) 2013-01-08 10:56:58 +01:00
quirks-pl2303-ids.h usbredir: Add support for buffered bulk input (v2) 2013-01-08 10:56:58 +01:00
quirks.c usbredir: Add support for buffered bulk input (v2) 2013-01-08 10:56:58 +01:00
quirks.h usbredir: Add support for buffered bulk input (v2) 2013-01-08 10:56:58 +01:00
redirect.c usb: Use g_new() & friends where that makes obvious sense 2015-11-06 15:42:38 +03:00