mirror_qemu/hw/pci-host
Alistair Francis 0151abe4f5 hw/pci*: Replace fprintf(stderr, "*\n" with error_report()
Replace a large number of the fprintf(stderr, "*\n" calls with
error_report(). The functions were renamed with these commands and then
compiler issues where manually fixed.

find ./* -type f -exec sed -i \
    'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +
find ./* -type f -exec sed -i \
    'N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \
    {} +

Some lines where then manually tweaked to pass checkpatch.

A trailing '.' was removed in hw/pci/pci.c

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>

Conversions that aren't followed by exit() dropped, because they might
be inappropriate.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180203084315.20497-9-armbru@redhat.com>
2018-02-06 18:29:26 +01:00
..
Makefile.objs apb: rename apb.c to sabre.c 2018-01-24 19:19:51 +00:00
bonito.c hw/pci*: Replace fprintf(stderr, "*\n" with error_report() 2018-02-06 18:29:26 +01:00
gpex.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
grackle.c grackle: convert to trace-events 2018-01-27 17:25:59 +11:00
pam.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
piix.c hw/pci-host/piix: QOM'ify the IGD Passthrough host bridge 2017-12-21 22:36:33 +02:00
ppce500.c Merge remote-tracking branch 'origin/master' into HEAD 2018-01-11 22:03:50 +02:00
prep.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
q35.c pci: Rename root bus initialization functions for clarity 2017-12-05 19:13:45 +02:00
sabre.c sabre: convert from SABRE_DPRINTF macro to trace-events 2018-01-24 19:19:51 +00:00
trace-events uninorth: convert to trace-events 2018-01-27 17:26:46 +11:00
uninorth.c uninorth: convert to trace-events 2018-01-27 17:26:46 +11:00
versatile.c pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
xilinx-pcie.c hw/pci-host/xilinx: QOM'ify the AXI-PCIe host bridge 2017-12-21 22:36:33 +02:00