From: Thomas Huth <huth@tuxfamily.org>
To: Alistair Francis <alistair.francis@xilinx.com>, qemu-devel@nongnu.org
Cc: "Chris Wulff" <crwulff@gmail.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Anthony Green" <green@moxielogic.com>,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
armbru@redhat.com, "Gerd Hoffmann" <kraxel@redhat.com>,
"Marek Vasut" <marex@denx.de>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Jia Liu" <proljc@gmail.com>,
qemu-block@nongnu.org, "Magnus Damm" <magnus.damm@gmail.com>,
"Alexander Graf" <agraf@suse.de>,
"Christian Borntraeger" <borntraeger@de.ibm.com>,
"Hervé Poussineau" <hpoussin@reactos.org>,
"Anthony Perard" <anthony.perard@citrix.com>,
xen-devel@lists.xenproject.org,
"Jason Wang" <jasowang@redhat.com>,
"Artyom Tarasenko" <atar4qemu@gmail.com>,
"Eduardo Habkost" <ehabkost@redhat.com>,
"Fabien Chouteau" <chouteau@adacore.com>,
"Marcel Apfelbaum" <marcel@redhat.com>,
qemu-arm@nongnu.org, "Jan Kiszka" <jan.kiszka@web.de>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Yongbok Kim" <yongbok.kim@imgtec.com>,
alistair23@gmail.com, "Stafford Horne" <shorne@gmail.com>,
"John Snow" <jsnow@redhat.com>,
"Richard Henderson" <rth@twiddle.net>,
"Paul Burton" <paul.burton@imgtec.com>,
"Thomas Huth" <huth@tuxfamily.org>,
"Cornelia Huck" <cohuck@redhat.com>,
"Michael Walle" <michael@walle.cc>,
qemu-ppc@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Aurelien Jarno" <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH v1 3/8] hw: Replace fprintf(stderr, "*\n" with error_report()
Date: Tue, 26 Sep 2017 05:51:44 +0200 [thread overview]
Message-ID: <1d317e5b-9de9-9186-1c00-573ca96f3d25@tuxfamily.org> (raw)
In-Reply-To: <bf3dd056ce55cbea81ca762c3c40d22683a542e7.1506384414.git.alistair.francis@xilinx.com>
On 26.09.2017 02:08, Alistair Francis wrote:
> 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.
>
> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
> Cc: Andrzej Zaborowski <balrogg@gmail.com>
> Cc: Jan Kiszka <jan.kiszka@web.de>
> Cc: Stefan Hajnoczi <stefanha@redhat.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: Thomas Huth <huth@tuxfamily.org>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Cc: "Michael S. Tsirkin" <mst@redhat.com>
> Cc: Richard Henderson <rth@twiddle.net>
> Cc: Eduardo Habkost <ehabkost@redhat.com>
> Cc: Stefano Stabellini <sstabellini@kernel.org>
> Cc: Anthony Perard <anthony.perard@citrix.com>
> Cc: John Snow <jsnow@redhat.com>
> Cc: Christian Borntraeger <borntraeger@de.ibm.com>
> Cc: Cornelia Huck <cohuck@redhat.com>
> Cc: Alexander Graf <agraf@suse.de>
> Cc: Michael Walle <michael@walle.cc>
> Cc: Paul Burton <paul.burton@imgtec.com>
> Cc: Aurelien Jarno <aurelien@aurel32.net>
> Cc: Yongbok Kim <yongbok.kim@imgtec.com>
> Cc: "Hervé Poussineau" <hpoussin@reactos.org>
> Cc: Anthony Green <green@moxielogic.com>
> Cc: Jason Wang <jasowang@redhat.com>
> Cc: Chris Wulff <crwulff@gmail.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Jia Liu <proljc@gmail.com>
> Cc: Stafford Horne <shorne@gmail.com>
> Cc: Marcel Apfelbaum <marcel@redhat.com>
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Cc: Fabien Chouteau <chouteau@adacore.com>
> Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> Cc: Artyom Tarasenko <atar4qemu@gmail.com>
> Cc: qemu-arm@nongnu.org
> Cc: qemu-block@nongnu.org
> Cc: xen-devel@lists.xenproject.org
> Cc: qemu-ppc@nongnu.org
> ---
>
> hw/arm/armv7m.c | 2 +-
> hw/arm/boot.c | 34 +++++++++----------
> hw/arm/gumstix.c | 13 ++++----
> hw/arm/mainstone.c | 7 ++--
> hw/arm/musicpal.c | 2 +-
> hw/arm/omap1.c | 5 +--
> hw/arm/omap2.c | 21 ++++++------
> hw/arm/omap_sx1.c | 6 ++--
> hw/arm/palm.c | 10 +++---
> hw/arm/pxa2xx.c | 7 ++--
> hw/arm/stellaris.c | 3 +-
> hw/arm/tosa.c | 17 +++++-----
> hw/arm/versatilepb.c | 2 +-
> hw/arm/vexpress.c | 8 ++---
> hw/arm/z2.c | 6 ++--
> hw/block/dataplane/virtio-blk.c | 6 ++--
> hw/block/onenand.c | 8 ++---
> hw/block/tc58128.c | 44 ++++++++++++-------------
> hw/bt/core.c | 15 +++++----
> hw/bt/hci-csr.c | 17 +++++-----
> hw/bt/hci.c | 30 ++++++++---------
> hw/bt/hid.c | 2 +-
> hw/bt/l2cap.c | 47 ++++++++++++++-------------
> hw/bt/sdp.c | 7 ++--
> hw/char/exynos4210_uart.c | 6 ++--
> hw/char/mcf_uart.c | 5 +--
> hw/char/sh_serial.c | 9 +++---
> hw/core/loader.c | 31 +++++++++---------
> hw/core/ptimer.c | 7 ++--
> hw/cris/axis_dev88.c | 3 +-
> hw/cris/boot.c | 5 +--
> hw/display/blizzard.c | 20 ++++++------
> hw/display/omap_dss.c | 14 ++++----
> hw/display/pl110.c | 2 +-
> hw/display/pxa2xx_lcd.c | 2 +-
> hw/display/qxl-render.c | 7 ++--
> hw/display/qxl.c | 10 +++---
> hw/display/tc6393xb.c | 36 ++++++++++++---------
> hw/display/virtio-gpu-3d.c | 4 +--
> hw/display/vmware_vga.c | 22 ++++++-------
> hw/dma/omap_dma.c | 26 ++++++++-------
> hw/dma/soc_dma.c | 37 ++++++++++-----------
> hw/gpio/omap_gpio.c | 2 +-
> hw/i2c/omap_i2c.c | 10 +++---
> hw/i386/kvm/apic.c | 9 +++---
> hw/i386/kvm/clock.c | 7 ++--
> hw/i386/kvm/i8254.c | 7 ++--
> hw/i386/kvm/i8259.c | 5 +--
> hw/i386/kvm/ioapic.c | 5 +--
> hw/i386/multiboot.c | 21 ++++++------
> hw/i386/pc.c | 18 +++++------
> hw/i386/pc_piix.c | 2 +-
> hw/i386/pc_sysfw.c | 5 +--
> hw/i386/xen/xen-hvm.c | 32 +++++++++---------
> hw/i386/xen/xen-mapcache.c | 12 +++----
> hw/i386/xen/xen_apic.c | 2 +-
> hw/ide/ahci.c | 6 ++--
> hw/ide/core.c | 2 +-
> hw/input/lm832x.c | 6 ++--
> hw/input/pckbd.c | 3 +-
> hw/input/pxa2xx_keypad.c | 2 +-
> hw/input/tsc2005.c | 17 +++++-----
> hw/input/tsc210x.c | 72 ++++++++++++++++++++---------------------
> hw/input/virtio-input-hid.c | 14 ++++----
> hw/input/virtio-input.c | 5 +--
> hw/intc/arm_gic_kvm.c | 12 +++----
> hw/intc/omap_intc.c | 4 +--
> hw/intc/openpic.c | 7 ++--
> hw/intc/openpic_kvm.c | 8 ++---
> hw/intc/s390_flic_kvm.c | 4 +--
> hw/ipmi/ipmi.c | 1 +
> hw/ipmi/ipmi_bmc_extern.c | 5 +--
> hw/isa/isa-bus.c | 7 ++--
> hw/lm32/lm32_boards.c | 5 +--
> hw/lm32/milkymist.c | 5 +--
> hw/m68k/an5206.c | 4 +--
> hw/m68k/mcf5206.c | 3 +-
> hw/m68k/mcf5208.c | 7 ++--
> hw/microblaze/boot.c | 2 +-
> hw/mips/boston.c | 4 +--
> hw/mips/mips_fulong2e.c | 4 +--
> hw/mips/mips_jazz.c | 4 +--
> hw/mips/mips_malta.c | 4 +--
> hw/mips/mips_mipssim.c | 4 +--
> hw/mips/mips_r4k.c | 6 ++--
> hw/misc/a9scu.c | 3 +-
> hw/misc/omap_gpmc.c | 11 ++++---
> hw/misc/omap_l4.c | 5 +--
> hw/misc/omap_sdrc.c | 3 +-
> hw/misc/vmport.c | 2 +-
> hw/moxie/moxiesim.c | 7 ++--
> hw/net/fsl_etsec/etsec.c | 2 +-
> hw/net/pcnet.c | 2 +-
> hw/net/smc91c111.c | 5 +--
> hw/net/vhost_net.c | 16 ++++-----
> hw/nios2/boot.c | 2 +-
> hw/nvram/eeprom93xx.c | 5 +--
> hw/nvram/fw_cfg.c | 4 +--
> hw/openrisc/openrisc_sim.c | 3 +-
> hw/pci-host/bonito.c | 6 ++--
> hw/pci/pci.c | 10 +++---
> hw/ppc/e500.c | 20 ++++++------
> hw/ppc/mac_newworld.c | 2 +-
> hw/ppc/mac_oldworld.c | 2 +-
> hw/ppc/mpc8544_guts.c | 5 +--
> hw/ppc/ppc405_boards.c | 8 ++---
> hw/ppc/ppc440_bamboo.c | 19 +++++------
> hw/ppc/ppc4xx_pci.c | 3 +-
> hw/ppc/prep.c | 4 +--
> hw/ppc/virtex_ml507.c | 4 +--
> hw/s390x/virtio-ccw.c | 2 +-
> hw/scsi/lsi53c895a.c | 4 +--
> hw/scsi/spapr_vscsi.c | 49 ++++++++++++++--------------
> hw/scsi/virtio-scsi-dataplane.c | 6 ++--
> hw/sd/pl181.c | 5 +--
> hw/sd/sd.c | 14 ++++----
> hw/sh4/r2d.c | 9 +++---
> hw/sh4/sh7750.c | 64 ++++++++++++++++++------------------
> hw/sparc/leon3.c | 9 +++---
> hw/sparc/sun4m.c | 8 ++---
> hw/sparc64/niagara.c | 2 +-
> hw/sparc64/sun4u.c | 9 +++---
> hw/ssi/omap_spi.c | 5 +--
> hw/timer/omap_gptimer.c | 11 ++++---
> hw/timer/twl92230.c | 2 +-
> hw/timer/xilinx_timer.c | 8 ++---
> hw/usb/core.c | 15 +++++----
> hw/usb/desc.c | 4 +--
> hw/usb/dev-audio.c | 29 +++++++++--------
> hw/usb/dev-bluetooth.c | 4 +--
> hw/usb/dev-mtp.c | 9 +++---
> hw/usb/dev-network.c | 20 ++++++------
> hw/usb/hcd-ehci.c | 32 +++++++++---------
> hw/usb/hcd-musb.c | 4 +--
> hw/usb/hcd-xhci.c | 3 +-
> hw/usb/host-legacy.c | 2 +-
> hw/watchdog/watchdog.c | 9 +++---
> hw/watchdog/wdt_i6300esb.c | 8 +++--
> hw/xen/xen-common.c | 10 +++---
> hw/xen/xen_pt.c | 4 +--
> hw/xenpv/xen_domainbuild.c | 24 +++++++-------
> hw/xenpv/xen_machine_pv.c | 8 ++---
> 142 files changed, 769 insertions(+), 705 deletions(-)
This patch is IMHO way to big! Can you please break this down into the
individual hw/* subsystems, so that people who are familiar with a
certain subsystem have a chance to review just their part? Thanks.
Thomas
next prev parent reply other threads:[~2017-09-26 3:52 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-26 0:08 [Qemu-devel] [PATCH v1 0/8] Remove some of the fprintf(stderr, "* Alistair Francis
2017-09-26 0:08 ` [Qemu-devel] [PATCH v1 1/8] Replace all occurances of __FUNCTION__ with __func__ Alistair Francis
2017-09-26 13:32 ` Eric Blake
2017-09-27 22:59 ` Alistair Francis
2017-09-27 23:47 ` [Qemu-devel] [Qemu-arm] " Peter Maydell
2017-09-28 22:37 ` Alistair Francis
2017-09-26 0:08 ` [Qemu-devel] [PATCH v1 2/8] tests: Replace fprintf(stderr, "*\n" with error_report() Alistair Francis
2017-09-26 0:55 ` Emilio G. Cota
2017-09-26 14:03 ` Eric Blake
2017-09-27 23:08 ` Alistair Francis
2017-09-28 17:53 ` Emilio G. Cota
2017-09-26 0:08 ` [Qemu-devel] [PATCH v1 3/8] hw: " Alistair Francis
2017-09-26 3:51 ` Thomas Huth [this message]
2017-09-27 22:41 ` Alistair Francis
2017-09-26 0:08 ` [Qemu-devel] [PATCH v1 4/8] block: " Alistair Francis
2017-09-26 0:09 ` [Qemu-devel] [PATCH v1 5/8] util: " Alistair Francis
2017-09-26 0:09 ` [Qemu-devel] [PATCH v1 6/8] ui: " Alistair Francis
2017-09-26 0:09 ` [Qemu-devel] [PATCH v1 7/8] tcg: " Alistair Francis
2017-09-26 15:05 ` Richard Henderson
2017-09-26 0:09 ` [Qemu-devel] [PATCH v1 8/8] target: " Alistair Francis
2017-09-26 4:08 ` Thomas Huth
2017-09-29 18:12 ` Alistair Francis
2017-09-26 15:21 ` Richard Henderson
2017-09-26 0:27 ` [Qemu-devel] [PATCH v1 0/8] Remove some of the fprintf(stderr, "* no-reply
2017-09-26 0:42 ` no-reply
2017-09-26 9:05 ` Stefan Hajnoczi
2017-09-26 16:47 ` Alistair Francis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1d317e5b-9de9-9186-1c00-573ca96f3d25@tuxfamily.org \
--to=huth@tuxfamily.org \
--cc=agraf@suse.de \
--cc=alistair.francis@xilinx.com \
--cc=alistair23@gmail.com \
--cc=anthony.perard@citrix.com \
--cc=armbru@redhat.com \
--cc=atar4qemu@gmail.com \
--cc=aurelien@aurel32.net \
--cc=borntraeger@de.ibm.com \
--cc=chouteau@adacore.com \
--cc=cohuck@redhat.com \
--cc=crwulff@gmail.com \
--cc=ehabkost@redhat.com \
--cc=green@moxielogic.com \
--cc=hpoussin@reactos.org \
--cc=jan.kiszka@web.de \
--cc=jasowang@redhat.com \
--cc=jsnow@redhat.com \
--cc=kraxel@redhat.com \
--cc=magnus.damm@gmail.com \
--cc=marcel@redhat.com \
--cc=marex@denx.de \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=michael@walle.cc \
--cc=mst@redhat.com \
--cc=paul.burton@imgtec.com \
--cc=pbonzini@redhat.com \
--cc=proljc@gmail.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
--cc=shorne@gmail.com \
--cc=sstabellini@kernel.org \
--cc=stefanha@redhat.com \
--cc=xen-devel@lists.xenproject.org \
--cc=yongbok.kim@imgtec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).