qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] error-report: introduce error_report_exit()
@ 2016-08-11  7:37 Peter Xu
  2016-08-11  7:37 ` [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit() Peter Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Peter Xu @ 2016-08-11  7:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru, peter.maydell, pbonzini, famz, peterx

We use these lines frequently in codes:

  error_report(SOME_ERROR_STRING);
  exit(1|EXIT_FAILURE);

This patchset provide error_report_exit() to do the above in one line.

Peter Xu (2):
  error-report: provide error_report_exit()
  error-report: leveraging error_report_exit()

 arch_init.c                                |   6 +-
 bootdevice.c                               |   4 +-
 cpus.c                                     |   3 +-
 device_tree.c                              |  42 ++---
 hw/9pfs/9p.c                               |   3 +-
 hw/alpha/dp264.c                           |  14 +-
 hw/arm/armv7m.c                            |   3 +-
 hw/arm/digic_boards.c                      |   6 +-
 hw/arm/fsl-imx6.c                          |   5 +-
 hw/arm/highbank.c                          |   6 +-
 hw/arm/raspi.c                             |   7 +-
 hw/arm/sabrelite.c                         |   8 +-
 hw/arm/strongarm.c                         |   6 +-
 hw/arm/sysbus-fdt.c                        |   5 +-
 hw/arm/vexpress.c                          |  14 +-
 hw/arm/virt.c                              |  42 ++---
 hw/arm/xlnx-ep108.c                        |   9 +-
 hw/block/tc58128.c                         |   3 +-
 hw/block/virtio-blk.c                      |   9 +-
 hw/char/exynos4210_uart.c                  |   9 +-
 hw/core/machine.c                          |   5 +-
 hw/core/platform-bus.c                     |   8 +-
 hw/i386/intel_iommu.c                      |   5 +-
 hw/i386/pc.c                               |  35 ++--
 hw/i386/pc_piix.c                          |   3 +-
 hw/i386/x86-iommu.c                        |   5 +-
 hw/ide/core.c                              |   5 +-
 hw/intc/ioapic.c                           |   5 +-
 hw/intc/xics_kvm.c                         |  15 +-
 hw/m68k/an5206.c                           |   3 +-
 hw/microblaze/boot.c                       |   5 +-
 hw/mips/mips_fulong2e.c                    |   3 +-
 hw/mips/mips_jazz.c                        |   3 +-
 hw/mips/mips_malta.c                       |  26 ++-
 hw/mips/mips_mipssim.c                     |   5 +-
 hw/net/virtio-net.c                        |  27 ++-
 hw/nvram/fw_cfg.c                          |   5 +-
 hw/pci/pci.c                               |   5 +-
 hw/ppc/e500.c                              |   5 +-
 hw/ppc/mac_newworld.c                      |  14 +-
 hw/ppc/mac_oldworld.c                      |  17 +-
 hw/ppc/mpc8544ds.c                         |   3 +-
 hw/ppc/ppc405_boards.c                     |  14 +-
 hw/ppc/prep.c                              |  11 +-
 hw/ppc/spapr.c                             |  85 ++++-----
 hw/ppc/virtex_ml507.c                      |   5 +-
 hw/scsi/vhost-scsi.c                       |  10 +-
 hw/scsi/virtio-scsi.c                      |   9 +-
 hw/sh4/shix.c                              |   3 +-
 hw/smbios/smbios.c                         |  41 ++---
 hw/sparc/sun4m.c                           |  19 +-
 hw/tricore/tricore_testboard.c             |   8 +-
 hw/unicore32/puv3.c                        |   9 +-
 hw/virtio/virtio.c                         |  44 ++---
 hw/xtensa/sim.c                            |   4 +-
 hw/xtensa/xtfpga.c                         |  16 +-
 include/qemu/error-report.h                |   8 +
 numa.c                                     |  22 +--
 qemu-img.c                                 |  15 +-
 qemu-io.c                                  |   9 +-
 qemu-nbd.c                                 | 113 +++++-------
 replay/replay-char.c                       |   6 +-
 replay/replay-events.c                     |  12 +-
 replay/replay-internal.c                   |   4 +-
 replay/replay-time.c                       |   3 +-
 replay/replay.c                            |   9 +-
 scripts/coccinelle/error_report_exit.cocci |  13 ++
 target-arm/machine.c                       |   5 +-
 target-i386/kvm.c                          |   8 +-
 target-ppc/kvm.c                           |   6 +-
 target-s390x/cpu.c                         |   5 +-
 target-s390x/kvm.c                         |   8 +-
 target-s390x/mmu_helper.c                  |   3 +-
 trace/control.c                            |   6 +-
 ui/spice-core.c                            |  40 ++---
 vl.c                                       | 268 +++++++++++------------------
 xen-hvm.c                                  |   3 +-
 77 files changed, 483 insertions(+), 772 deletions(-)
 create mode 100644 scripts/coccinelle/error_report_exit.cocci

-- 
2.7.4

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2016-08-17  9:32 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11  7:37 [Qemu-devel] [PATCH 0/2] error-report: introduce error_report_exit() Peter Xu
2016-08-11  7:37 ` [Qemu-devel] [PATCH 1/2] error-report: provide error_report_exit() Peter Xu
2016-08-16 11:05   ` Markus Armbruster
2016-08-16 11:53     ` Fam Zheng
2016-08-16 12:17       ` Peter Xu
2016-08-16 12:19         ` Fam Zheng
2016-08-16 14:00           ` Peter Xu
2016-08-16 14:01             ` Fam Zheng
2016-08-16 14:45             ` Markus Armbruster
2016-08-17  6:47               ` Peter Xu
2016-08-17  7:33                 ` Markus Armbruster
2016-08-17  7:38                   ` Peter Xu
2016-08-17  8:17         ` Peter Xu
2016-08-17  9:26           ` Markus Armbruster
2016-08-17  9:32             ` Peter Xu
2016-08-11  7:37 ` [Qemu-devel] [PATCH 2/2] error-report: leveraging error_report_exit() Peter Xu
2016-08-11  7:55   ` [Qemu-devel] [PATCH v2] " Peter Xu
2016-08-11  8:01     ` no-reply
2016-08-11  8:47       ` Peter Xu
2016-08-11  8:45         ` Fam Zheng
2016-08-11  8:58           ` Peter Xu
2016-08-11  7:50 ` [Qemu-devel] [PATCH 0/2] error-report: introduce error_report_exit() no-reply

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).