qemu-irix/hw/ppc
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
..
Makefile.objs ppc/spapr: Implement H_RANDOM hypercall in QEMU 2015-09-23 10:51:11 +10:00
e500-ccsr.h
e500.c error: Use error_reportf_err() where it makes obvious sense 2016-01-13 15:16:17 +01:00
e500.h
e500plat.c Use DEFINE_MACHINE() to register all machines 2015-09-19 16:40:15 +02:00
mac.h cuda.c: add delay to setting of SR_INT bit 2015-11-12 13:15:55 +11:00
mac_newworld.c hw: Don't use hw_error() for machine initialization errors 2016-01-13 11:58:58 +01:00
mac_oldworld.c hw: Don't use hw_error() for machine initialization errors 2016-01-13 11:58:58 +01:00
mpc8544_guts.c
mpc8544ds.c Use DEFINE_MACHINE() to register all machines 2015-09-19 16:40:15 +02:00
ppc.c s/cpu_get_real_ticks/cpu_get_host_ticks/ 2015-10-08 19:46:01 +03:00
ppc4xx_devs.c
ppc4xx_pci.c
ppc405.h
ppc405_boards.c hw/ppc/ppc405_boards: Fix infinite recursion by converting taihu_cpld from old_mmio 2015-11-30 19:39:00 +11:00
ppc405_uc.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
ppc440_bamboo.c ppc: Rename ELF_MACHINE to be PPC specific 2015-09-25 12:04:44 +02:00
ppc_booke.c
ppce500_spin.c
prep.c hw: Don't use hw_error() for machine initialization errors 2016-01-13 11:58:58 +01:00
spapr.c hw: Inline the qdev_prop_set_drive_nofail() wrapper 2016-01-13 11:58:58 +01:00
spapr_drc.c error: Use error_report_err() where appropriate (again) 2016-01-13 15:16:16 +01:00
spapr_events.c spapr: Support hotplug by specifying DRC count 2015-09-23 10:51:11 +10:00
spapr_hcall.c spapr: Support ibm,dynamic-reconfiguration-memory 2015-09-23 10:51:10 +10:00
spapr_iommu.c spapr_iommu: Provide a function to switch a TCE table to allowing VFIO 2015-10-23 10:38:10 +11:00
spapr_pci.c spapr_pci: Allow VFIO devices to work on the normal PCI host bridge 2015-10-23 10:38:10 +11:00
spapr_pci_vfio.c sPAPR: Enable EEH on VFIO PCI device only 2015-09-23 10:51:11 +10:00
spapr_rng.c ppc/spapr: Implement H_RANDOM hypercall in QEMU 2015-09-23 10:51:11 +10:00
spapr_rtas.c spapr_drc: use RTAS return codes for methods called by RTAS 2015-09-23 10:51:10 +10:00
spapr_rtc.c hw/ppc/spapr_rtc: Remove bad class_size value 2016-01-11 13:25:40 +11:00
spapr_vio.c spapr vio: fix to incomplete QOMify 2016-01-11 15:29:05 +11:00
virtex_ml507.c ppc: Rename ELF_MACHINE to be PPC specific 2015-09-25 12:04:44 +02:00