From: Laurent Vivier <lvivier@redhat.com>
To: qemu-trivial@nongnu.org
Cc: qemu-devel@nongnu.org, Laurent Vivier <lvivier@redhat.com>
Subject: [Qemu-devel] [PATCH 00/26] trivial: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
Date: Fri, 16 Sep 2016 15:55:51 +0200 [thread overview]
Message-ID: <1474034177-17663-1-git-send-email-lvivier@redhat.com> (raw)
This series is the result of coccinelle patch
scripts/coccinelle/exit.cocci
provided by the first patch of the series.
It replaces exit(0) by exit(EXIT_SUCCESS)
and exit(1) by exit(EXIT_FAILURE).
All other exit() are not modified as we don't want
to change the behavior.
In some cases, I've added manually a line break to comply
with the maximum line length.
Laurent Vivier (26):
coccinelle: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
arm: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
cris: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
block: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
ppc: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
graphics: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
tests: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
replay: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
qemu-user: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
m68k: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
pci,virtio: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
sparc: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
sh4: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
x86: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
mips: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
s390: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
tcg: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
posix: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
alpha: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
common: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
misc machine: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
blockdev: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
core: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
error,trace: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
hw: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
net: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE)
accel.c | 2 +-
arch_init.c | 6 +-
bootdevice.c | 2 +-
bsd-user/main.c | 20 +--
contrib/ivshmem-server/main.c | 12 +-
cpus.c | 16 +-
cputlb.c | 2 +-
device_tree.c | 18 +-
exec.c | 2 +-
gdbstub.c | 2 +-
hw/9pfs/9p.c | 2 +-
hw/alpha/dp264.c | 8 +-
hw/arm/armv7m.c | 6 +-
hw/arm/boot.c | 16 +-
hw/arm/cubieboard.c | 8 +-
hw/arm/digic_boards.c | 6 +-
hw/arm/fsl-imx6.c | 2 +-
hw/arm/gumstix.c | 8 +-
hw/arm/highbank.c | 4 +-
hw/arm/integratorcp.c | 2 +-
hw/arm/mainstone.c | 4 +-
hw/arm/musicpal.c | 4 +-
hw/arm/omap1.c | 4 +-
hw/arm/omap2.c | 4 +-
hw/arm/omap_sx1.c | 2 +-
hw/arm/palm.c | 2 +-
hw/arm/pxa2xx.c | 10 +-
hw/arm/raspi.c | 4 +-
hw/arm/realview.c | 2 +-
hw/arm/sabrelite.c | 4 +-
hw/arm/strongarm.c | 4 +-
hw/arm/sysbus-fdt.c | 2 +-
hw/arm/versatilepb.c | 2 +-
hw/arm/vexpress.c | 16 +-
hw/arm/virt.c | 24 +--
hw/arm/xlnx-ep108.c | 4 +-
hw/arm/z2.c | 4 +-
hw/block/pflash_cfi01.c | 2 +-
hw/block/tc58128.c | 2 +-
hw/block/virtio-blk.c | 6 +-
hw/char/exynos4210_uart.c | 4 +-
hw/core/machine.c | 2 +-
hw/core/platform-bus.c | 4 +-
hw/core/qdev.c | 2 +-
hw/cris/axis_dev88.c | 2 +-
hw/cris/boot.c | 4 +-
hw/display/pl110.c | 2 +-
hw/display/pxa2xx_lcd.c | 2 +-
hw/display/ssd0303.c | 3 +-
hw/gpio/pl061.c | 3 +-
hw/i2c/smbus.c | 3 +-
hw/i386/intel_iommu.c | 2 +-
hw/i386/multiboot.c | 10 +-
hw/i386/pc.c | 24 +--
hw/i386/pc_piix.c | 2 +-
hw/i386/pc_sysfw.c | 6 +-
hw/i386/x86-iommu.c | 2 +-
hw/ide/core.c | 2 +-
hw/intc/ioapic.c | 2 +-
hw/intc/xics_kvm.c | 6 +-
hw/lm32/lm32_boards.c | 8 +-
hw/lm32/milkymist.c | 6 +-
hw/m68k/an5206.c | 6 +-
hw/m68k/dummy_m68k.c | 4 +-
hw/m68k/mcf5208.c | 8 +-
hw/mips/mips_fulong2e.c | 12 +-
hw/mips/mips_jazz.c | 10 +-
hw/mips/mips_malta.c | 20 +--
hw/mips/mips_mipssim.c | 10 +-
hw/mips/mips_r4k.c | 10 +-
hw/moxie/moxiesim.c | 8 +-
hw/net/stellaris_enet.c | 3 +-
hw/net/virtio-net.c | 10 +-
hw/nvram/eeprom93xx.c | 2 +-
hw/nvram/fw_cfg.c | 2 +-
hw/openrisc/openrisc_sim.c | 4 +-
hw/pci-host/bonito.c | 2 +-
hw/pci/pci.c | 12 +-
hw/ppc/e500.c | 14 +-
hw/ppc/mac_newworld.c | 12 +-
hw/ppc/mac_oldworld.c | 16 +-
hw/ppc/mpc8544ds.c | 2 +-
hw/ppc/ppc.c | 4 +-
hw/ppc/ppc405_boards.c | 16 +-
hw/ppc/ppc440_bamboo.c | 10 +-
hw/ppc/ppc4xx_devs.c | 2 +-
hw/ppc/prep.c | 12 +-
hw/ppc/spapr.c | 52 +++---
hw/ppc/virtex_ml507.c | 4 +-
hw/scsi/lsi53c895a.c | 7 +-
hw/scsi/vhost-scsi.c | 4 +-
hw/scsi/virtio-scsi-dataplane.c | 2 +-
hw/scsi/virtio-scsi.c | 6 +-
hw/sd/omap_mmc.c | 4 +-
hw/sd/ssi-sd.c | 3 +-
hw/sh4/r2d.c | 6 +-
hw/sh4/shix.c | 4 +-
hw/smbios/smbios.c | 22 +--
hw/sparc/leon3.c | 12 +-
hw/sparc/sun4m.c | 22 +--
hw/sparc64/sun4u.c | 8 +-
hw/ssi/pl022.c | 3 +-
hw/tricore/tricore_testboard.c | 4 +-
hw/unicore32/puv3.c | 6 +-
hw/virtio/virtio.c | 28 +--
hw/watchdog/watchdog.c | 2 +-
hw/xenpv/xen_machine_pv.c | 8 +-
kvm-all.c | 8 +-
linux-user/main.c | 4 +-
linux-user/syscall.c | 2 +-
net/net.c | 4 +-
numa.c | 12 +-
os-posix.c | 34 ++--
qemu-char.c | 6 +-
qemu-img.c | 4 +-
qemu-io.c | 24 +--
qemu-nbd.c | 6 +-
replay/replay-char.c | 6 +-
replay/replay-events.c | 6 +-
replay/replay-internal.c | 2 +-
replay/replay-time.c | 2 +-
replay/replay.c | 14 +-
scripts/coccinelle/exit.cocci | 12 ++
slirp/misc.c | 2 +-
target-arm/kvm.c | 2 +-
target-arm/machine.c | 2 +-
target-i386/kvm.c | 8 +-
target-i386/machine.c | 2 +-
target-ppc/kvm.c | 6 +-
target-ppc/translate.c | 2 +-
target-ppc/translate_init.c | 28 +--
target-s390x/cpu.c | 2 +-
target-s390x/kvm.c | 18 +-
target-s390x/mmu_helper.c | 2 +-
tcg/ppc/tcg-target.inc.c | 6 +-
tcg/tcg.c | 2 +-
tests/ipmi-bt-test.c | 6 +-
tests/libqtest.c | 8 +-
tests/migration/stress.c | 4 +-
tests/qht-bench.c | 2 +-
tests/rcutorture.c | 4 +-
tests/tcg/cris/check_gcctorture_pr28634-1.c | 2 +-
tests/tcg/cris/check_gcctorture_pr28634.c | 2 +-
tests/tcg/cris/check_glibc_kernelversion.c | 2 +-
tests/tcg/cris/check_hello.c | 2 +-
tests/tcg/cris/check_lz.c | 2 +-
tests/tcg/cris/check_mapbrk.c | 6 +-
tests/tcg/cris/check_mmap1.c | 2 +-
tests/tcg/cris/check_mmap2.c | 2 +-
tests/tcg/cris/check_mmap3.c | 2 +-
tests/tcg/cris/check_openpf5.c | 2 +-
tests/tcg/cris/check_stat1.c | 2 +-
tests/tcg/cris/check_stat2.c | 2 +-
tests/tcg/cris/check_stat3.c | 2 +-
tests/tcg/cris/check_stat4.c | 2 +-
tests/tcg/cris/check_time1.c | 2 +-
tests/tcg/cris/check_time2.c | 2 +-
tests/tcg/cris/sys.c | 2 +-
tests/tcg/hello-i386.c | 2 +-
tests/tcg/linux-test.c | 4 +-
tests/tcg/runcom.c | 12 +-
tests/tcg/test_path.c | 2 +-
tests/test-aio.c | 2 +-
tests/test-iov.c | 8 +-
tests/test-thread-pool.c | 2 +-
tests/vhost-user-bridge.c | 18 +-
trace/control.c | 10 +-
translate-all.c | 2 +-
ui/console-gl.c | 2 +-
ui/console.c | 2 +-
ui/curses.c | 4 +-
ui/gtk.c | 2 +-
ui/sdl.c | 8 +-
ui/sdl2.c | 2 +-
ui/spice-core.c | 22 +--
ui/vnc.c | 4 +-
util/error.c | 2 +-
util/oslib-posix.c | 2 +-
util/qemu-timer-common.c | 2 +-
vl.c | 270 ++++++++++++++--------------
xen-common.c | 4 +-
xen-hvm.c | 2 +-
182 files changed, 734 insertions(+), 715 deletions(-)
create mode 100644 scripts/coccinelle/exit.cocci
--
2.5.5
next reply other threads:[~2016-09-16 13:58 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-16 13:55 Laurent Vivier [this message]
2016-09-16 13:55 ` [Qemu-devel] [PATCH 01/26] coccinelle: use exit(EXIT_SUCCESS) and exit(EXIT_FAILURE) Laurent Vivier
2016-09-16 15:35 ` Eric Blake
2016-09-16 13:55 ` [Qemu-devel] [PATCH 02/26] arm: " Laurent Vivier
2016-09-16 13:55 ` [Qemu-devel] [PATCH 03/26] cris: " Laurent Vivier
2016-09-16 14:41 ` Edgar E. Iglesias
2016-09-16 13:55 ` [Qemu-devel] [PATCH 04/26] block: " Laurent Vivier
2016-09-16 13:55 ` [Qemu-devel] [PATCH 05/26] ppc: " Laurent Vivier
2016-09-19 5:22 ` David Gibson
2016-09-16 13:55 ` [Qemu-devel] [PATCH 06/26] graphics: " Laurent Vivier
2016-09-16 13:55 ` [Qemu-devel] [PATCH 07/26] tests: " Laurent Vivier
2016-09-16 13:55 ` [Qemu-devel] [PATCH 08/26] replay: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 09/26] qemu-user: " Laurent Vivier
2016-09-21 19:21 ` Riku Voipio
2016-09-16 13:56 ` [Qemu-devel] [PATCH 10/26] m68k: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 11/26] pci, virtio: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 12/26] sparc: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 13/26] sh4: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 14/26] x86: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 15/26] mips: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 16/26] s390: " Laurent Vivier
2016-09-19 11:07 ` Cornelia Huck
2016-09-16 13:56 ` [Qemu-devel] [PATCH 17/26] tcg: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 18/26] posix: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 19/26] alpha: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 20/26] common: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 21/26] misc machine: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 22/26] blockdev: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 23/26] core: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 24/26] error, trace: " Laurent Vivier
2016-09-16 15:55 ` Eric Blake
2016-09-16 13:56 ` [Qemu-devel] [PATCH 25/26] hw: " Laurent Vivier
2016-09-16 13:56 ` [Qemu-devel] [PATCH 26/26] net: " Laurent Vivier
2016-09-16 14:41 ` [Qemu-devel] [PATCH 00/26] trivial: " no-reply
2016-09-16 14:47 ` Peter Maydell
2016-09-16 15:39 ` Daniel P. Berrange
2016-09-16 15:45 ` Peter Maydell
2016-09-19 9:21 ` Markus Armbruster
2016-09-19 9:46 ` Laurent Vivier
2016-09-19 10:19 ` Peter Maydell
2016-09-19 10:32 ` Cornelia Huck
2016-09-16 15:27 ` Daniel P. Berrange
2016-09-16 15:39 ` Eric Blake
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=1474034177-17663-1-git-send-email-lvivier@redhat.com \
--to=lvivier@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/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).