Remove some of the fprintf(stderr, "*
cover Remove some of the fprintf(stderr, "*
Continue on improving QEMUs logging/error messages by removing more fprintf()'s.
Unfortunatley my Coccinelle skills aren't that great so it's all done in some nasty regex and a little bit of manual work.
Alistair Francis (8):
Replace all occurances of __FUNCTION__ with __func__
tests: Replace fprintf(stderr, "*\n" with error_report()
hw: Replace fprintf(stderr, "*\n" with error_report()
block: Replace fprintf(stderr, "*\n" with error_report()
util: Replace fprintf(stderr, "*\n" with error_report()
ui: Replace fprintf(stderr, "*\n" with error_report()
tcg: Replace fprintf(stderr, "*\n" with error_report()
target: Replace fprintf(stderr, "*\n" with error_report()
audio/audio_int.h | 2 +- block/file-posix.c | 6 +- block/file-win32.c | 3 +- block/linux-aio.c | 5 +- block/parallels.c | 7 ++- block/qcow2-cluster.c | 2 +- block/qcow2-refcount.c | 95 +++++++++++++++---------------- block/qcow2.c | 8 +-- block/quorum.c | 5 +- block/ssh.c | 4 +- block/vdi.c | 14 +++-- block/vpc.c | 5 +- block/vvfat.c | 99 ++++++++++++++++++--------------- cpus.c | 8 +-- exec.c | 14 ++--- 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/nseries.c | 2 +- hw/arm/omap1.c | 45 +++++++-------- hw/arm/omap2.c | 23 ++++---- hw/arm/omap_sx1.c | 6 +- hw/arm/palm.c | 20 +++---- hw/arm/pxa2xx.c | 53 +++++++++--------- hw/arm/pxa2xx_gpio.c | 6 +- hw/arm/pxa2xx_pic.c | 4 +- hw/arm/stellaris.c | 3 +- hw/arm/tosa.c | 25 +++++---- hw/arm/versatilepb.c | 2 +- hw/arm/vexpress.c | 8 +-- hw/arm/z2.c | 6 +- hw/audio/hda-codec.c | 10 ++-- hw/audio/intel-hda.c | 28 +++++----- hw/audio/wm8750.c | 4 +- hw/block/dataplane/virtio-blk.c | 6 +- hw/block/nand.c | 4 +- hw/block/onenand.c | 16 +++--- hw/block/tc58128.c | 44 +++++++-------- hw/bt/core.c | 15 ++--- hw/bt/hci-csr.c | 17 +++--- hw/bt/hci.c | 48 ++++++++-------- hw/bt/hid.c | 4 +- hw/bt/l2cap.c | 49 ++++++++-------- hw/bt/sdp.c | 11 ++-- 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 | 28 +++++----- hw/display/omap_dss.c | 16 +++--- hw/display/pl110.c | 2 +- hw/display/pxa2xx_lcd.c | 14 ++--- hw/display/qxl-render.c | 9 ++- hw/display/qxl.c | 10 ++-- hw/display/qxl.h | 2 +- hw/display/tc6393xb.c | 38 +++++++------ hw/display/virtio-gpu-3d.c | 4 +- hw/display/vmware_vga.c | 22 ++++---- hw/display/xenfb.c | 2 +- hw/dma/omap_dma.c | 38 +++++++------ hw/dma/pxa2xx_dma.c | 14 ++--- hw/dma/soc_dma.c | 37 ++++++------ hw/gpio/max7310.c | 8 +-- 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/ide/microdrive.c | 4 +- hw/input/lm832x.c | 8 +-- hw/input/pckbd.c | 3 +- hw/input/pxa2xx_keypad.c | 6 +- hw/input/tsc2005.c | 17 +++--- hw/input/tsc210x.c | 76 ++++++++++++------------- 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/isa/vt82c686.c | 2 +- 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/gt64xxx_pci.c | 2 +- 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/cbus.c | 12 ++-- hw/misc/omap_clk.c | 4 +- hw/misc/omap_gpmc.c | 13 +++-- hw/misc/omap_l4.c | 5 +- hw/misc/omap_sdrc.c | 5 +- hw/misc/omap_tap.c | 6 +- hw/misc/tmp105.c | 2 +- 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 | 8 +-- 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/pxa2xx_mmci.c | 6 +- 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 | 9 +-- hw/timer/omap_gptimer.c | 13 +++-- hw/timer/twl92230.c | 8 +-- 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/usb/tusb6010.c | 14 ++--- 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 | 32 +++++------ hw/xenpv/xen_machine_pv.c | 8 +-- include/hw/arm/omap.h | 10 ++-- include/hw/arm/sharpsl.h | 2 +- memory_mapping.c | 2 +- migration/block.c | 4 +- target/arm/arm-powerctl.c | 5 +- target/arm/arm-semi.c | 3 +- target/arm/helper.c | 4 +- target/arm/kvm.c | 16 +++--- target/arm/kvm32.c | 2 +- target/arm/kvm64.c | 2 +- target/arm/translate-a64.c | 4 +- target/arm/translate.c | 2 +- target/cris/helper.c | 2 +- target/cris/translate.c | 2 +- target/i386/hax-all.c | 52 ++++++++--------- target/i386/hax-darwin.c | 26 ++++----- target/i386/hax-mem.c | 4 +- target/i386/hax-windows.c | 42 +++++++------- target/i386/kvm.c | 38 ++++++------- target/i386/misc_helper.c | 12 ++-- target/lm32/op_helper.c | 4 +- target/mips/mips-semi.c | 3 +- target/mips/translate.c | 2 +- target/ppc/excp_helper.c | 4 +- target/ppc/kvm.c | 36 ++++++------ target/ppc/mmu-hash64.c | 2 +- target/ppc/mmu_helper.c | 2 +- target/ppc/translate.c | 20 +++---- target/ppc/translate_init.c | 53 +++++++++--------- target/s390x/kvm.c | 20 +++---- target/s390x/misc_helper.c | 2 +- target/sh4/translate.c | 4 +- target/unicore32/translate.c | 4 +- tcg/optimize.c | 8 +-- tcg/tcg.c | 2 +- tcg/tcg.h | 3 +- tcg/tci.c | 2 +- tcg/tci/tcg-target.inc.c | 4 +- tests/Makefile.include | 4 +- tests/ahci-test.c | 3 +- tests/atomic_add-bench.c | 2 +- tests/bios-tables-test.c | 5 +- tests/check-qlit | Bin 0 -> 272776 bytes tests/i440fx-test.c | 8 +-- tests/libqos/ahci.c | 10 ++-- tests/libqos/libqos.c | 7 ++- tests/libqos/malloc.c | 13 +++-- tests/libqtest.c | 13 +++-- tests/migration/stress.c | 36 ++++++------ tests/postcopy-test.c | 8 +-- tests/qemu-iotests/socket_scm_helper.c | 11 ++-- tests/qht-bench.c | 5 +- tests/rcutorture.c | 5 +- tests/tcg/linux-test.c | 2 +- tests/tcg/runcom.c | 6 +- tests/tcg/test-i386-fprem.c | 2 +- tests/tcg/test_path.c | 4 +- tests/test-hmp.c | 5 +- tests/test-rcu-list.c | 5 +- tests/usb-hcd-ehci-test.c | 2 +- tests/vhost-user-bridge.c | 28 +++++----- ui/cocoa.m | 6 +- ui/console.c | 2 +- ui/curses.c | 2 +- ui/cursor.c | 12 ++-- ui/gtk.c | 10 ++-- ui/input-linux.c | 3 +- ui/keymaps.c | 4 +- ui/sdl.c | 14 ++--- ui/sdl2.c | 8 +-- ui/sdl_zoom.c | 3 +- ui/shader.c | 8 +-- ui/spice-display.c | 10 ++-- ui/vnc-enc-tight.c | 4 +- ui/vnc-enc-zlib.c | 4 +- ui/vnc-enc-zrle.c | 4 +- ui/vnc.c | 2 +- util/aio-posix.c | 5 +- util/coroutine-sigaltstack.c | 2 +- util/error.c | 2 +- util/main-loop.c | 2 +- util/mmap-alloc.c | 3 +- util/module.c | 6 +- util/osdep.c | 4 +- util/oslib-posix.c | 3 +- util/oslib-win32.c | 3 +- util/qemu-coroutine.c | 5 +- util/qemu-progress.c | 3 +- util/qemu-thread-posix.c | 5 +- util/qemu-thread-win32.c | 5 +- util/qemu-timer-common.c | 3 +- util/qht.c | 2 +- vl.c | 2 +- 270 files changed, 1477 insertions(+), 1368 deletions(-) create mode 100755 tests/check-qlit
Signature · 1 line
2.11.0
PATCH 1/8 Replace all occurances of __FUNCTION__ with __func__
Replace all occurs of __FUNCTION__ except for the check in checkpatch with the non GCC specific __func__.
One line in hcd-musb.c was manually tweaked to pass checkpatch.
---
audio/audio_int.h | 2 +- hw/arm/nseries.c | 2 +- hw/arm/omap1.c | 42 +++++++++++++++++++++--------------------- hw/arm/omap2.c | 12 ++++++------ hw/arm/palm.c | 14 +++++++------- hw/arm/pxa2xx.c | 46 +++++++++++++++++++++++----------------------- hw/arm/pxa2xx_gpio.c | 6 +++--- hw/arm/pxa2xx_pic.c | 4 ++-- hw/arm/tosa.c | 10 +++++----- hw/audio/hda-codec.c | 10 +++++----- hw/audio/intel-hda.c | 28 ++++++++++++++-------------- hw/audio/wm8750.c | 4 ++-- hw/block/nand.c | 4 ++-- hw/block/onenand.c | 8 ++++---- hw/bt/core.c | 10 +++++----- hw/bt/hci-csr.c | 14 +++++++------- hw/bt/hci.c | 26 +++++++++++++------------- hw/bt/hid.c | 2 +- hw/bt/l2cap.c | 22 +++++++++++----------- hw/bt/sdp.c | 6 +++--- hw/display/blizzard.c | 18 +++++++++--------- hw/display/omap_dss.c | 6 +++--- hw/display/pxa2xx_lcd.c | 14 +++++++------- hw/display/qxl-render.c | 6 +++--- hw/display/qxl.h | 2 +- hw/display/tc6393xb.c | 2 +- hw/display/xenfb.c | 2 +- hw/dma/omap_dma.c | 26 +++++++++++++------------- hw/dma/pxa2xx_dma.c | 14 +++++++------- hw/gpio/max7310.c | 8 ++++---- hw/gpio/omap_gpio.c | 2 +- hw/i2c/omap_i2c.c | 6 +++--- hw/ide/ahci.c | 2 +- hw/ide/microdrive.c | 4 ++-- hw/input/lm832x.c | 6 +++--- hw/input/pxa2xx_keypad.c | 6 +++--- hw/input/tsc2005.c | 8 ++++---- hw/input/tsc210x.c | 4 ++-- hw/intc/omap_intc.c | 2 +- hw/isa/vt82c686.c | 2 +- hw/mips/gt64xxx_pci.c | 2 +- hw/misc/cbus.c | 12 ++++++------ hw/misc/omap_clk.c | 4 ++-- hw/misc/omap_gpmc.c | 6 +++--- hw/misc/omap_l4.c | 4 ++-- hw/misc/omap_sdrc.c | 2 +- hw/misc/omap_tap.c | 6 +++--- hw/misc/tmp105.c | 2 +- hw/pci-host/bonito.c | 2 +- hw/sd/pxa2xx_mmci.c | 6 +++--- hw/ssi/omap_spi.c | 6 +++--- hw/timer/omap_gptimer.c | 6 +++--- hw/timer/twl92230.c | 6 +++--- hw/usb/desc.c | 2 +- hw/usb/dev-bluetooth.c | 4 ++-- hw/usb/hcd-musb.c | 4 ++-- hw/usb/tusb6010.c | 14 +++++++------- hw/xenpv/xen_domainbuild.c | 16 ++++++++-------- hw/xenpv/xen_machine_pv.c | 2 +- include/hw/arm/omap.h | 10 +++++----- include/hw/arm/sharpsl.h | 2 +- memory_mapping.c | 2 +- migration/block.c | 4 ++-- ui/cursor.c | 6 +++--- ui/spice-display.c | 4 ++-- 65 files changed, 273 insertions(+), 273 deletions(-)
audio/audio_int.h +1 -1
@@ -253,7 +253,7 @@ static inline int audio_ring_dist (int dst, int src, int len)#define AUDIO_STRINGIFY (n) AUDIO_STRINGIFY_(n)#if defined _MSC_VER || defined __GNUC__ -#define AUDIO_FUNC __FUNCTION__ +#define AUDIO_FUNC __func__#else #define AUDIO_FUNC __FILE__ ":" AUDIO_STRINGIFY (__LINE__)#endif
hw/arm/nseries.c +1 -1
@@ -463,7 +463,7 @@ static uint32_t mipid_txrx(void *opaque, uint32_t cmd, int len)uint8_t ret;if (len >9 ) { -hw_error ("%s: FIXME: bad SPI word width %i\n" , __FUNCTION__, len); +hw_error ("%s: FIXME: bad SPI word width %i\n" , __func__, len); }if (s->p >=ARRAY_SIZE (s->resp)) {
hw/arm/omap1.c +21 -21
162 lines not on this page · raw message
hw/arm/omap2.c +6 -6
@@ -1312,7 +1312,7 @@ static void omap_prcm_apll_update(struct omap_prcm_s *s)if (mode[0 ] ==1 || mode[0 ] ==2 || mode[1 ] ==1 || mode[1 ] ==2 )fprintf (stderr,"%s: bad EN_54M_PLL or bad EN_96M_PLL\n" , - __FUNCTION__); + __func__); }static void omap_prcm_dpll_update (struct omap_prcm_s *s)
@@ -1331,7 +1331,7 @@ static void omap_prcm_dpll_update(struct omap_prcm_s *s) s->dpll_lock =0 ;switch (mode) {case 0 : -fprintf (stderr,"%s: bad EN_DPLL\n" , __FUNCTION__); +fprintf (stderr,"%s: bad EN_DPLL\n" , __func__);break ;case 1 :/* Low-power bypass mode (Default) */ case 2 :/* Fast-relock bypass mode */
@@ -1358,7 +1358,7 @@ static void omap_prcm_dpll_update(struct omap_prcm_s *s)omap_clk_reparent (core, dpll_x2);break ;case 3 : -fprintf (stderr,"%s: bad CORE_CLK_SRC\n" , __FUNCTION__); +fprintf (stderr,"%s: bad CORE_CLK_SRC\n" , __func__);break ; } }
@@ -1628,7 +1628,7 @@ static void omap_prcm_write(void *opaque, hwaddr addr,case 0x500 :/* CM_CLKEN_PLL */ if (value &0xffffff30 )fprintf (stderr,"%s: write 0s in CM_CLKEN_PLL for " -"future compatibility\n" , __FUNCTION__); +"future compatibility\n" , __func__);if ((s->clken[9 ] ^ value) &0xcc ) { s->clken[9 ] &= ~0xcc ; s->clken[9 ] |= value &0xcc ;
@@ -1647,7 +1647,7 @@ static void omap_prcm_write(void *opaque, hwaddr addr,case 0x540 :/* CM_CLKSEL1_PLL */ if (value &0xfc4000d7 )fprintf (stderr,"%s: write 0s in CM_CLKSEL1_PLL for " -"future compatibility\n" , __FUNCTION__); +"future compatibility\n" , __func__);if ((s->clksel[5 ] ^ value) &0x003fff00 ) { s->clksel[5 ] = value &0x03bfff28 ;omap_prcm_dpll_update (s);
@@ -1659,7 +1659,7 @@ static void omap_prcm_write(void *opaque, hwaddr addr,case 0x544 :/* CM_CLKSEL2_PLL */ if (value & ~3 )fprintf (stderr,"%s: write 0s in CM_CLKSEL2_PLL[31:2] for " -"future compatibility\n" , __FUNCTION__); +"future compatibility\n" , __func__);if (s->clksel[6 ] != (value &3 )) { s->clksel[6 ] = value &3 ;omap_prcm_dpll_update (s);
hw/arm/palm.c +7 -7
@@ -44,7 +44,7 @@ static void static_write(void *opaque, hwaddr offset, uint64_t value, {#ifdef SPY printf ("%s: value %08lx written at " PA_FMT "\n" , - __FUNCTION__, value, offset); + __func__, value, offset);#endif }
@@ -127,11 +127,11 @@ static void palmte_onoff_gpios(void *opaque, int line, int level)switch (line) {case 0 :printf ("%s: current to MMC/SD card %sabled.\n" , - __FUNCTION__, level ?"dis" :"en" ); + __func__, level ?"dis" :"en" );break ;case 1 :printf ("%s: internal speaker amplifier %s.\n" , - __FUNCTION__, level ?"down" :"on" ); + __func__, level ?"down" :"on" );break ;/* These LCD & Audio output signals have not been identified yet. */
@@ -139,12 +139,12 @@ static void palmte_onoff_gpios(void *opaque, int line, int level)case 3 :case 4 :printf ("%s: LCD GPIO%i %s.\n" , - __FUNCTION__, line -1 , level ?"high" :"low" ); + __func__, line -1 , level ?"high" :"low" );break ;case 5 :case 6 :printf ("%s: Audio GPIO%i %s.\n" , - __FUNCTION__, line -4 , level ?"high" :"low" ); + __func__, line -4 , level ?"high" :"low" );break ; } }
@@ -234,7 +234,7 @@ static void palmte_init(MachineState *machine) rom_size =get_image_size (option_rom[0 ].name);if (rom_size > flash_size) {fprintf (stderr,"%s: ROM image too big (%x > %x)\n" , - __FUNCTION__, rom_size, flash_size); + __func__, rom_size, flash_size); rom_size =0 ; }if (rom_size >0 ) {
@@ -244,7 +244,7 @@ static void palmte_init(MachineState *machine) }if (rom_size <0 ) {fprintf (stderr,"%s: error loading '%s'\n" , - __FUNCTION__, option_rom[0 ].name); + __func__, option_rom[0 ].name); } }
hw/arm/pxa2xx.c +23 -23
179 lines not on this page · raw message
hw/arm/pxa2xx_gpio.c +3 -3
@@ -107,7 +107,7 @@ static void pxa2xx_gpio_set(void *opaque, int line, int level)uint32_t mask;if (line >= s->lines) { -printf ("%s: No GPIO pin %i\n" , __FUNCTION__, line); +printf ("%s: No GPIO pin %i\n" , __func__, line);return ; }
@@ -195,7 +195,7 @@ static uint64_t pxa2xx_gpio_read(void *opaque, hwaddr offset,return s->status[bank];default : -hw_error ("%s: Bad offset " REG_FMT "\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " REG_FMT "\n" , __func__, offset); }return 0 ;
@@ -248,7 +248,7 @@ static void pxa2xx_gpio_write(void *opaque, hwaddr offset,break ;default : -hw_error ("%s: Bad offset " REG_FMT "\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " REG_FMT "\n" , __func__, offset); } }
hw/arm/pxa2xx_pic.c +2 -2
@@ -165,7 +165,7 @@ static uint64_t pxa2xx_pic_mem_read(void *opaque, hwaddr offset,case ICHP :/* Highest Priority register */ return pxa2xx_pic_highest (s);default : -printf ("%s: Bad register offset " REG_FMT "\n" , __FUNCTION__, offset); +printf ("%s: Bad register offset " REG_FMT "\n" , __func__, offset);return 0 ; } }
@@ -198,7 +198,7 @@ static void pxa2xx_pic_mem_write(void *opaque, hwaddr offset, s->priority[32 + ((offset -IPR32 ) >>2 )] = value &0x8000003f ;break ;default : -printf ("%s: Bad register offset " REG_FMT "\n" , __FUNCTION__, offset); +printf ("%s: Bad register offset " REG_FMT "\n" , __func__, offset);return ; }pxa2xx_pic_update (opaque);
hw/arm/tosa.c +5 -5
@@ -159,7 +159,7 @@ static int tosa_dac_send(I2CSlave *i2c, uint8_t data) s->buf[s->len] = data;if (s->len ++ >2 ) {#ifdef VERBOSE -fprintf (stderr,"%s: message too long (%i bytes)\n" , __FUNCTION__, s->len); +fprintf (stderr,"%s: message too long (%i bytes)\n" , __func__, s->len);#endif return 1 ; }
@@ -181,14 +181,14 @@ static int tosa_dac_event(I2CSlave *i2c, enum i2c_event event)case I2C_START_SEND :break ;case I2C_START_RECV : -printf ("%s: recv not supported!!!\n" , __FUNCTION__); +printf ("%s: recv not supported!!!\n" , __func__);break ;case I2C_FINISH :#ifdef VERBOSE if (s->len <2 ) -printf ("%s: message too short (%i bytes)\n" , __FUNCTION__, s->len); +printf ("%s: message too short (%i bytes)\n" , __func__, s->len);if (s->len >2 ) -printf ("%s: message too long\n" , __FUNCTION__); +printf ("%s: message too long\n" , __func__);#endif break ;default :
@@ -200,7 +200,7 @@ static int tosa_dac_event(I2CSlave *i2c, enum i2c_event event)static int tosa_dac_recv (I2CSlave *s) { -printf ("%s: recv not supported!!!\n" , __FUNCTION__); +printf ("%s: recv not supported!!!\n" , __func__);return -1 ; }
hw/audio/hda-codec.c +5 -5
@@ -316,7 +316,7 @@ static void hda_audio_command(HDACodecDevice *hda, uint32_t nid, uint32_t data) goto fail; }dprint (a,2 ,"%s: nid %d (%s), verb 0x%x, payload 0x%x\n" , - __FUNCTION__, nid, node->name, verb, payload); + __func__, nid, node->name, verb, payload);switch (verb) {/* all nodes */
@@ -449,7 +449,7 @@ static void hda_audio_command(HDACodecDevice *hda, uint32_t nid, uint32_t data) fail:dprint (a,1 ,"%s: not handled: nid %d (%s), verb 0x%x, payload 0x%x\n" , - __FUNCTION__, nid, node ? node->name :"?" , verb, payload); + __func__, nid, node ? node->name :"?" , verb, payload);hda_codec_response (hda, true,0 ); }
@@ -484,7 +484,7 @@ static int hda_audio_init(HDACodecDevice *hda, const struct desc_codec *desc) a->desc = desc; a->name =object_get_typename (OBJECT (a)); -dprint (a,1 ,"%s: cad %d\n" , __FUNCTION__, a->hda.cad); +dprint (a,1 ,"%s: cad %d\n" , __func__, a->hda.cad);AUD_register_card ("hda" , &a->card);for (i =0 ; i < a->desc->nnodes; i++) {
@@ -526,7 +526,7 @@ static void hda_audio_exit(HDACodecDevice *hda)HDAAudioStream *st;int i; -dprint (a,1 ,"%s\n" , __FUNCTION__); +dprint (a,1 ,"%s\n" , __func__);for (i =0 ; i <ARRAY_SIZE (a->st); i++) { st = a->st + i;if (st->node ==NULL ) {
@@ -547,7 +547,7 @@ static int hda_audio_post_load(void *opaque, int version)HDAAudioStream *st;int i; -dprint (a,1 ,"%s\n" , __FUNCTION__); +dprint (a,1 ,"%s\n" , __func__);if (version ==1 ) {/* assume running_compat[] is for output streams */ for (i =0 ; i <ARRAY_SIZE (a->running_compat); i++)
hw/audio/intel-hda.c +14 -14
@@ -265,7 +265,7 @@ static void intel_hda_update_irq(IntelHDAState *d) }else { level =0 ; } -dprint (d,2 ,"%s: level %d [%s]\n" , __FUNCTION__, +dprint (d,2 ,"%s: level %d [%s]\n" , __func__, level, msi ?"msi" :"intx" );if (msi) {if (level) {
@@ -285,7 +285,7 @@ static int intel_hda_send_command(IntelHDAState *d, uint32_t verb) cad = (verb >>28 ) &0x0f ;if (verb & (1 <<27 )) {/* indirect node addressing, not specified in HDA 1.0 */ -dprint (d,1 ,"%s: indirect node addressing (guest bug?)\n" , __FUNCTION__); +dprint (d,1 ,"%s: indirect node addressing (guest bug?)\n" , __func__);return -1 ; } nid = (verb >>20 ) &0x7f ;
@@ -293,7 +293,7 @@ static int intel_hda_send_command(IntelHDAState *d, uint32_t verb) codec =hda_codec_find (&d->codecs, cad);if (codec ==NULL ) { -dprint (d,1 ,"%s: addressed non-existing codec\n" , __FUNCTION__); +dprint (d,1 ,"%s: addressed non-existing codec\n" , __func__);return -1 ; } cdc =HDA_CODEC_DEVICE_GET_CLASS (codec);
@@ -307,22 +307,22 @@ static void intel_hda_corb_run(IntelHDAState *d)uint32_t rp, verb;if (d->ics &ICH6_IRS_BUSY ) { -dprint (d,2 ,"%s: [icw] verb 0x%08x\n" , __FUNCTION__, d->icw); +dprint (d,2 ,"%s: [icw] verb 0x%08x\n" , __func__, d->icw);intel_hda_send_command (d, d->icw);return ; }for (;;) {if (!(d->corb_ctl &ICH6_CORBCTL_RUN )) { -dprint (d,2 ,"%s: !run\n" , __FUNCTION__); +dprint (d,2 ,"%s: !run\n" , __func__);return ; }if ((d->corb_rp &0xff ) == d->corb_wp) { -dprint (d,2 ,"%s: corb ring empty\n" , __FUNCTION__); +dprint (d,2 ,"%s: corb ring empty\n" , __func__);return ; }if (d->rirb_count == d->rirb_cnt) { -dprint (d,2 ,"%s: rirb count reached\n" , __FUNCTION__); +dprint (d,2 ,"%s: rirb count reached\n" , __func__);return ; }
@@ -331,7 +331,7 @@ static void intel_hda_corb_run(IntelHDAState *d) verb =ldl_le_pci_dma (&d->pci, addr +4 *rp); d->corb_rp = rp; -dprint (d,2 ,"%s: [rp 0x%x] verb 0x%08x\n" , __FUNCTION__, rp, verb); +dprint (d,2 ,"%s: [rp 0x%x] verb 0x%08x\n" , __func__, rp, verb);intel_hda_send_command (d, verb); } }
@@ -345,7 +345,7 @@ static void intel_hda_response(HDACodecDevice *dev, bool solicited, uint32_t resif (d->ics &ICH6_IRS_BUSY ) {dprint (d,2 ,"%s: [irr] response 0x%x, cad 0x%x\n" , - __FUNCTION__, response, dev->cad); + __func__, response, dev->cad); d->irr = response; d->ics &= ~(ICH6_IRS_BUSY |0xf0 ); d->ics |= (ICH6_IRS_VALID | (dev->cad <<4 ));
@@ -353,7 +353,7 @@ static void intel_hda_response(HDACodecDevice *dev, bool solicited, uint32_t res }if (!(d->rirb_ctl &ICH6_RBCTL_DMA_EN )) { -dprint (d,1 ,"%s: rirb dma disabled, drop codec response\n" , __FUNCTION__); +dprint (d,1 ,"%s: rirb dma disabled, drop codec response\n" , __func__);return ; }
@@ -365,17 +365,17 @@ static void intel_hda_response(HDACodecDevice *dev, bool solicited, uint32_t res d->rirb_wp = wp;dprint (d,2 ,"%s: [wp 0x%x] response 0x%x, extra 0x%x\n" , - __FUNCTION__, wp, response, ex); + __func__, wp, response, ex); d->rirb_count++;if (d->rirb_count == d->rirb_cnt) { -dprint (d,2 ,"%s: rirb count reached (%d)\n" , __FUNCTION__, d->rirb_count); +dprint (d,2 ,"%s: rirb count reached (%d)\n" , __func__, d->rirb_count);if (d->rirb_ctl &ICH6_RBCTL_IRQ_EN ) { d->rirb_sts |=ICH6_RBSTS_IRQ ;intel_hda_update_irq (d); } }else if ((d->corb_rp &0xff ) == d->corb_wp) { -dprint (d,2 ,"%s: corb ring empty (%d/%d)\n" , __FUNCTION__, +dprint (d,2 ,"%s: corb ring empty (%d/%d)\n" , __func__, d->rirb_count, d->rirb_cnt);if (d->rirb_ctl &ICH6_RBCTL_IRQ_EN ) { d->rirb_sts |=ICH6_RBSTS_IRQ ;
@@ -1144,7 +1144,7 @@ static int intel_hda_post_load(void *opaque, int version)IntelHDAState * d = opaque;int i; -dprint (d,1 ,"%s\n" , __FUNCTION__); +dprint (d,1 ,"%s\n" , __func__);for (i =0 ; i <ARRAY_SIZE (d->st); i++) {if (d->st[i].ctl &0x02 ) {intel_hda_parse_bdl (d, &d->st[i]);
hw/audio/wm8750.c +2 -2
@@ -315,7 +315,7 @@ static int wm8750_event(I2CSlave *i2c, enum i2c_event event)#ifdef VERBOSE if (s->i2c_len <2 )printf ("%s: message too short (%i bytes)\n" , - __FUNCTION__, s->i2c_len); + __func__, s->i2c_len);#endif break ;default :
@@ -555,7 +555,7 @@ static int wm8750_tx(I2CSlave *i2c, uint8_t data)#ifdef VERBOSE default : -printf ("%s: unknown register %02x\n" , __FUNCTION__, cmd); +printf ("%s: unknown register %02x\n" , __func__, cmd);#endif }
hw/block/nand.c +2 -2
@@ -321,7 +321,7 @@ static void nand_command(NANDFlashState *s)break ;default : -printf ("%s: Unknown NAND command 0x%02x\n" , __FUNCTION__, s->cmd); +printf ("%s: Unknown NAND command 0x%02x\n" , __func__, s->cmd); } }
@@ -638,7 +638,7 @@ DeviceState *nand_init(BlockBackend *blk, int manf_id, int chip_id)DeviceState *dev;if (nand_flash_ids[chip_id].size ==0 ) { -hw_error ("%s: Unsupported NAND chip ID.\n" , __FUNCTION__); +hw_error ("%s: Unsupported NAND chip ID.\n" , __func__); } dev =DEVICE (object_new (TYPE_NAND ));qdev_prop_set_uint8 (dev,"manufacturer_id" , manf_id);
hw/block/onenand.c +4 -4
@@ -661,12 +661,12 @@ static uint64_t onenand_read(void *opaque, hwaddr addr,case 0xff02 :/* ECC Result of spare area data */ case 0xff03 :/* ECC Result of main area data */ case 0xff04 :/* ECC Result of spare area data */ -hw_error ("%s: imeplement ECC\n" , __FUNCTION__); +hw_error ("%s: imeplement ECC\n" , __func__);return 0x0000 ; }fprintf (stderr,"%s: unknown OneNAND register %x\n" , - __FUNCTION__, offset); + __func__, offset);return 0 ; }
@@ -711,7 +711,7 @@ static void onenand_write(void *opaque, hwaddr addr,default :fprintf (stderr,"%s: unknown OneNAND boot command %" PRIx64"\n" , - __FUNCTION__, value); + __func__, value); }break ;
@@ -762,7 +762,7 @@ static void onenand_write(void *opaque, hwaddr addr,default :fprintf (stderr,"%s: unknown OneNAND register %x\n" , - __FUNCTION__, offset); + __func__, offset); } }
hw/bt/core.c +5 -5
@@ -32,23 +32,23 @@ static void bt_dummy_lmp_connection_complete(struct bt_link_s *link) {if (link->slave->reject_reason)fprintf (stderr,"%s: stray LMP_not_accepted received, fixme\n" , - __FUNCTION__); + __func__);else fprintf (stderr,"%s: stray LMP_accepted received, fixme\n" , - __FUNCTION__); + __func__);exit (-1 ); }static void bt_dummy_lmp_disconnect_master (struct bt_link_s *link) { -fprintf (stderr,"%s: stray LMP_detach received, fixme\n" , __FUNCTION__); +fprintf (stderr,"%s: stray LMP_detach received, fixme\n" , __func__);exit (-1 ); }static void bt_dummy_lmp_acl_resp (struct bt_link_s *link,const uint8_t *data,int start,int len) { -fprintf (stderr,"%s: stray ACL response PDU, fixme\n" , __FUNCTION__); +fprintf (stderr,"%s: stray ACL response PDU, fixme\n" , __func__);exit (-1 ); }
@@ -113,7 +113,7 @@ void bt_device_done(struct bt_device_s *dev)while (*p && *p != dev) p = &(*p)->next;if (*p != dev) { -fprintf (stderr,"%s: bad bt device \"%s\"\n" , __FUNCTION__, +fprintf (stderr,"%s: bad bt device \"%s\"\n" , __func__, dev->lmp_name ?:"(null)" );exit (-1 ); }
hw/bt/hci-csr.c +7 -7
@@ -111,14 +111,14 @@ static uint8_t *csrhci_out_packet(struct csrhci_s *s, int len)if (off <FIFO_LEN ) {if (off + len >FIFO_LEN && (s->out_size = off + len) >FIFO_LEN *2 ) { -fprintf (stderr,"%s: can't alloc %i bytes\n" , __FUNCTION__, len); +fprintf (stderr,"%s: can't alloc %i bytes\n" , __func__, len);exit (-1 ); }return s->outfifo + off; }if (s->out_len > s->out_size) { -fprintf (stderr,"%s: can't alloc %i bytes\n" , __FUNCTION__, len); +fprintf (stderr,"%s: can't alloc %i bytes\n" , __func__, len);exit (-1 ); }
@@ -169,7 +169,7 @@ static void csrhci_in_packet_vendor(struct csrhci_s *s, int ocf, s->hci->bdaddr_set (s->hci, s->bd_addr.b);fprintf (stderr,"%s: bd_address loaded from firmware: " -"%02x:%02x:%02x:%02x:%02x:%02x\n" , __FUNCTION__, +"%02x:%02x:%02x:%02x:%02x:%02x\n" , __func__, s->bd_addr.b[0 ], s->bd_addr.b[1 ], s->bd_addr.b[2 ], s->bd_addr.b[3 ], s->bd_addr.b[4 ], s->bd_addr.b[5 ]); }
@@ -181,7 +181,7 @@ static void csrhci_in_packet_vendor(struct csrhci_s *s, int ocf,break ;default : -fprintf (stderr,"%s: got a bad CMD packet\n" , __FUNCTION__); +fprintf (stderr,"%s: got a bad CMD packet\n" , __func__);return ; }
@@ -226,7 +226,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)case H4_NEG_PKT :if (s->in_hdr !=sizeof (csrhci_neg_packet) ||memcmp (pkt -1 , csrhci_neg_packet, s->in_hdr)) { -fprintf (stderr,"%s: got a bad NEG packet\n" , __FUNCTION__); +fprintf (stderr,"%s: got a bad NEG packet\n" , __func__);return ; } pkt +=2 ;
@@ -241,7 +241,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)case H4_ALIVE_PKT :if (s->in_hdr !=4 || pkt[1 ] !=0x55 || pkt[2 ] !=0x00 ) { -fprintf (stderr,"%s: got a bad ALIVE packet\n" , __FUNCTION__); +fprintf (stderr,"%s: got a bad ALIVE packet\n" , __func__);return ; }
@@ -254,7 +254,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)default : bad_pkt:/* TODO: error out */ -fprintf (stderr,"%s: got a bad packet\n" , __FUNCTION__); +fprintf (stderr,"%s: got a bad packet\n" , __func__);break ; }
hw/bt/hci.c +13 -13
@@ -458,7 +458,7 @@ static inline uint8_t *bt_hci_event_start(struct bt_hci_s *hci,if (len >255 ) {fprintf (stderr,"%s: HCI event params too long (%ib)\n" , - __FUNCTION__, len); + __func__, len);exit (-1 ); }
@@ -589,7 +589,7 @@ static void bt_hci_inquiry_result(struct bt_hci_s *hci,bt_hci_inquiry_result_with_rssi (hci, slave);return ;default : -fprintf (stderr,"%s: bad inquiry mode %02x\n" , __FUNCTION__, +fprintf (stderr,"%s: bad inquiry mode %02x\n" , __func__, hci->lm.inquiry_mode);exit (-1 ); }
@@ -1528,7 +1528,7 @@ static void bt_submit_hci(struct HCIInfo *info,"the Inquiry command has been issued, a Command " "Status event has been received for the Inquiry " "command, and before the Inquiry Complete event " - "occurs", __FUNCTION__); + "occurs", __func__);bt_hci_event_complete_status (hci,HCI_COMMAND_DISALLOWED );break ; }
@@ -1567,7 +1567,7 @@ static void bt_submit_hci(struct HCIInfo *info,"the Inquiry command has been issued, a Command " "Status event has been received for the Inquiry " "command, and before the Inquiry Complete event " - "occurs", __FUNCTION__); + "occurs", __func__);bt_hci_event_complete_status (hci,HCI_COMMAND_DISALLOWED );break ; }
@@ -1972,7 +1972,7 @@ static void bt_submit_hci(struct HCIInfo *info, short_hci:fprintf (stderr,"%s: HCI packet too short (%iB)\n" , - __FUNCTION__, length); + __func__, length);bt_hci_event_status (hci,HCI_INVALID_PARAMETERS );break ; }
@@ -1992,7 +1992,7 @@ static inline void bt_hci_lmp_acl_data(struct bt_hci_s *hci, uint16_t handle,if (len +HCI_ACL_HDR_SIZE >sizeof (hci->acl_buf)) {fprintf (stderr,"%s: can't take ACL packets %i bytes long\n" , - __FUNCTION__, len); + __func__, len);return ; }memcpy (hci->acl_buf +HCI_ACL_HDR_SIZE , data, len);
@@ -2030,7 +2030,7 @@ static void bt_submit_acl(struct HCIInfo *info,if (length <HCI_ACL_HDR_SIZE ) {fprintf (stderr,"%s: ACL packet too short (%iB)\n" , - __FUNCTION__, length); + __func__, length);return ; }
@@ -2042,7 +2042,7 @@ static void bt_submit_acl(struct HCIInfo *info,if (bt_hci_handle_bad (hci, handle)) {fprintf (stderr,"%s: invalid ACL handle %03x\n" , - __FUNCTION__, handle); + __func__, handle);/* TODO: signal an error */ return ; }
@@ -2050,7 +2050,7 @@ static void bt_submit_acl(struct HCIInfo *info,if (datalen > length) {fprintf (stderr,"%s: ACL packet too short (%iB < %iB)\n" , - __FUNCTION__, length, datalen); + __func__, length, datalen);return ; }
@@ -2061,7 +2061,7 @@ static void bt_submit_acl(struct HCIInfo *info, hci->asb_handle = handle; else if (handle != hci->asb_handle) {fprintf (stderr,"%s: Bad handle %03x in Active Slave Broadcast\n" , - __FUNCTION__, handle); + __func__, handle);/* TODO: signal an error */ return ; }
@@ -2074,7 +2074,7 @@ static void bt_submit_acl(struct HCIInfo *info, hci->psb_handle = handle; else if (handle != hci->psb_handle) {fprintf (stderr,"%s: Bad handle %03x in Parked Slave Broadcast\n" , - __FUNCTION__, handle); + __func__, handle);/* TODO: signal an error */ return ; }
@@ -2106,13 +2106,13 @@ static void bt_submit_sco(struct HCIInfo *info,if (bt_hci_handle_bad (hci, handle)) {fprintf (stderr,"%s: invalid SCO handle %03x\n" , - __FUNCTION__, handle); + __func__, handle);return ; }if (datalen > length) {fprintf (stderr,"%s: SCO packet too short (%iB < %iB)\n" , - __FUNCTION__, length, datalen); + __func__, length, datalen);return ; }
hw/bt/hid.c +1 -1
@@ -420,7 +420,7 @@ static void bt_hid_interrupt_sdu(void *opaque, const uint8_t *data, int len)return ; bad:fprintf (stderr,"%s: bad transaction on Interrupt channel.\n" , - __FUNCTION__); + __func__); }/* "Virtual cable" plug/unplug event. */
hw/bt/l2cap.c +11 -11
@@ -468,7 +468,7 @@ static void l2cap_channel_close(struct l2cap_instance_s *l2cap,if (likely (ch)) {if (ch->remote_cid != source_cid) {fprintf (stderr,"%s: Ignoring a Disconnection Request with the " -"invalid SCID %04x.\n" , __FUNCTION__, source_cid); +"invalid SCID %04x.\n" , __func__, source_cid);return ; }
@@ -791,7 +791,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,/* TODO: do the IDs really have to be in sequence? */ if (!id || (id != l2cap->last_id && id != l2cap->next_id)) {fprintf (stderr,"%s: out of sequence command packet ignored.\n" , - __FUNCTION__); + __func__);return ; }#else
@@ -814,7 +814,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,/* We never issue commands other than Command Reject currently. */ fprintf (stderr,"%s: stray Command Reject (%02x, %04x) " -"packet, ignoring.\n" , __FUNCTION__, id, +"packet, ignoring.\n" , __func__, id,le16_to_cpu (((l2cap_cmd_rej *) params)->reason));break ;
@@ -837,7 +837,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,/* We never issue Connection Requests currently. TODO */ fprintf (stderr,"%s: unexpected Connection Response (%02x) " -"packet, ignoring.\n" , __FUNCTION__, id); +"packet, ignoring.\n" , __func__, id);break ;case L2CAP_CONF_REQ :
@@ -866,7 +866,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id, ((l2cap_conf_rsp *) params)->data, len - L2CAP_CONF_RSP_SIZE(0)))fprintf (stderr,"%s: unexpected Configure Response (%02x) " -"packet, ignoring.\n" , __FUNCTION__, id); +"packet, ignoring.\n" , __func__, id);break ;case L2CAP_DISCONN_REQ :
@@ -888,7 +888,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,/* We never issue Disconnection Requests currently. TODO */ fprintf (stderr,"%s: unexpected Disconnection Response (%02x) " -"packet, ignoring.\n" , __FUNCTION__, id); +"packet, ignoring.\n" , __func__, id);break ;case L2CAP_ECHO_REQ :
@@ -898,7 +898,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,case L2CAP_ECHO_RSP :/* We never issue Echo Requests currently. TODO */ fprintf (stderr,"%s: unexpected Echo Response (%02x) " -"packet, ignoring.\n" , __FUNCTION__, id); +"packet, ignoring.\n" , __func__, id);break ;case L2CAP_INFO_REQ :
@@ -918,7 +918,7 @@ static void l2cap_command(struct l2cap_instance_s *l2cap, int code, int id,/* We never issue Information Requests currently. TODO */ fprintf (stderr,"%s: unexpected Information Response (%02x) " -"packet, ignoring.\n" , __FUNCTION__, id); +"packet, ignoring.\n" , __func__, id);break ;default :
@@ -1067,7 +1067,7 @@ static void l2cap_frame_in(struct l2cap_instance_s *l2cap,if (unlikely (cid >=L2CAP_CID_MAX || !l2cap->cid[cid])) {fprintf (stderr,"%s: frame addressed to a non-existent L2CAP " -"channel %04x received.\n" , __FUNCTION__, cid); +"channel %04x received.\n" , __func__, cid);return ; }
@@ -1129,7 +1129,7 @@ static uint8_t *l2cap_bframe_out(struct bt_l2cap_conn_params_s *parm, int len)if (len > chan->params.remote_mtu) {fprintf (stderr,"%s: B-Frame for CID %04x longer than %i octets.\n" , - __FUNCTION__, + __func__, chan->remote_cid, chan->params.remote_mtu);exit (-1 ); }
@@ -1354,7 +1354,7 @@ void bt_l2cap_psm_register(struct bt_l2cap_device_s *dev, int psm, int min_mtu,if (new_psm) {fprintf (stderr,"%s: PSM %04x already registered for device `%s'.\n" , - __FUNCTION__, psm, dev->device.lmp_name); + __func__, psm, dev->device.lmp_name);exit (-1 ); }
hw/bt/sdp.c +3 -3
@@ -506,7 +506,7 @@ static void bt_l2cap_sdp_sdu_in(void *opaque, const uint8_t *data, int len)int rsp_len =0 ;if (len <5 ) { -fprintf (stderr,"%s: short SDP PDU (%iB).\n" , __FUNCTION__, len); +fprintf (stderr,"%s: short SDP PDU (%iB).\n" , __func__, len);return ; }
@@ -518,7 +518,7 @@ static void bt_l2cap_sdp_sdu_in(void *opaque, const uint8_t *data, int len)if (len != plen) {fprintf (stderr,"%s: wrong SDP PDU length (%iB != %iB).\n" , - __FUNCTION__, plen, len); + __func__, plen, len); err =SDP_INVALID_PDU_SIZE ; goto respond; }
@@ -545,7 +545,7 @@ static void bt_l2cap_sdp_sdu_in(void *opaque, const uint8_t *data, int len)case SDP_SVC_SEARCH_ATTR_RSP :default :fprintf (stderr,"%s: unexpected SDP PDU ID %02x.\n" , - __FUNCTION__, pdu_id); + __func__, pdu_id); err =SDP_INVALID_SYNTAX ;break ; }
hw/display/blizzard.c +9 -9
@@ -474,7 +474,7 @@ static uint16_t blizzard_reg_read(void *opaque, uint8_t reg)return s->gpio_pdown;default : -fprintf (stderr,"%s: unknown register %02x\n" , __FUNCTION__, reg); +fprintf (stderr,"%s: unknown register %02x\n" , __func__, reg);return 0 ; } }
@@ -502,7 +502,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) s->pll_mode = value &0x77 ;if ((value &3 ) ==0 || (value &3 ) ==3 )fprintf (stderr,"%s: wrong PLL Control bits (%i)\n" , - __FUNCTION__, value &3 ); + __func__, value &3 );break ;case 0x0e :/* Clock-Source Select */
@@ -541,7 +541,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value)case 0x28 :/* LCD Panel Configuration */ s->lcd_config = value &0xff ;if (value & (1 <<7 )) -fprintf (stderr,"%s: data swap not supported!\n" , __FUNCTION__); +fprintf (stderr,"%s: data swap not supported!\n" , __func__);break ;case 0x2a :/* LCD Horizontal Display Width */
@@ -586,7 +586,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) s->hssi_config[1 ] = value;if (((value >>4 ) &3 ) ==3 )fprintf (stderr,"%s: Illegal active-data-links value\n" , - __FUNCTION__); + __func__);break ;case 0x42 :/* High-speed Serial Interface Tx Mode */ s->hssi_config[2 ] = value &0xbd ;
@@ -641,7 +641,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) s->enable = value &1 ; s->blank = (value >>1 ) &1 ;if (value & (1 <<4 )) -fprintf (stderr,"%s: Macrovision enable attempt!\n" , __FUNCTION__); +fprintf (stderr,"%s: Macrovision enable attempt!\n" , __func__);break ;case 0x6a :/* Special Effects */
@@ -718,7 +718,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) s->bpp = blizzard_iformat_bpp[s->iformat];if (!s->bpp)fprintf (stderr,"%s: Illegal or unsupported input format %x\n" , - __FUNCTION__, s->iformat); + __func__, s->iformat);break ;case 0x8e :/* Data Source Select */ s->source = value &7 ;
@@ -730,7 +730,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) !((s->ix[1] - s->ix[0]) & (s->iy[1] - s->iy[0]) & (s->ox[1] - s->ox[0]) & (s->oy[1] - s->oy[0]) & 1))fprintf (stderr,"%s: Illegal input/output window positions\n" , - __FUNCTION__); + __func__);blizzard_transfer_setup (s);break ;
@@ -784,7 +784,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) s->pm = value &0x83 ;if (value & s->mode &1 )fprintf (stderr,"%s: The display must be disabled before entering " -"Standby Mode\n" , __FUNCTION__); +"Standby Mode\n" , __func__);break ;case 0xe8 :/* Non-display Period Control / Status */ s->status = value &0x1b ;
@@ -815,7 +815,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value)break ;default : -fprintf (stderr,"%s: unknown register %02x\n" , __FUNCTION__, reg); +fprintf (stderr,"%s: unknown register %02x\n" , __func__, reg);break ; } }
hw/display/omap_dss.c +3 -3
@@ -526,7 +526,7 @@ static void omap_disc_write(void *opaque, hwaddr addr, s->dispc.l[0 ].attr = value &0x7ff ;if (value & (3 <<9 ))fprintf (stderr,"%s: Big-endian pixel format not supported\n" , - __FUNCTION__); + __func__); s->dispc.l[0 ].enable = value &1 ; s->dispc.l[0 ].bpp = (value >>1 ) &0xf ; s->dispc.invalidate =1 ;
@@ -617,7 +617,7 @@ static void omap_rfbi_transfer_start(struct omap_dss_s *s)if (s->rfbi.control & (1 <<1 )) {/* BYPASS */ /* TODO: in non-Bypass mode we probably need to just assert the * DRQ and wait for DMA to write the pixels. */ -fprintf (stderr,"%s: Bypass mode unimplemented\n" , __FUNCTION__); +fprintf (stderr,"%s: Bypass mode unimplemented\n" , __func__);return ; }
@@ -1086,6 +1086,6 @@ struct omap_dss_s *omap_dss_init(struct omap_target_agent_s *ta,void omap_rfbi_attach (struct omap_dss_s *s,int cs,struct rfbi_chip_s *chip) {if (cs <0 || cs >1 ) -hw_error ("%s: wrong CS %i\n" , __FUNCTION__, cs); +hw_error ("%s: wrong CS %i\n" , __func__, cs); s->rfbi.chip[cs] = chip; }
hw/display/pxa2xx_lcd.c +7 -7
@@ -405,7 +405,7 @@ static uint64_t pxa2xx_lcdc_read(void *opaque, hwaddr offset,default : fail: -hw_error ("%s: Bad offset " REG_FMT "\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " REG_FMT "\n" , __func__, offset); }return 0 ;
@@ -424,7 +424,7 @@ static void pxa2xx_lcdc_write(void *opaque, hwaddr offset, s->status[0 ] |=LCSR0_QD ;if (!(s->control[0 ] &LCCR0_LCDT ) && (value &LCCR0_LCDT )) -printf ("%s: internal frame buffer unsupported\n" , __FUNCTION__); +printf ("%s: internal frame buffer unsupported\n" , __func__);if ((s->control[3 ] &LCCR3_API ) && (value &LCCR0_ENB ) && !(value &LCCR0_LCDT ))
@@ -460,7 +460,7 @@ static void pxa2xx_lcdc_write(void *opaque, hwaddr offset,case OVL1C1 :if (!(s->ovl1c[0 ] &OVLC1_EN ) && (value &OVLC1_EN )) -printf ("%s: Overlay 1 not supported\n" , __FUNCTION__); +printf ("%s: Overlay 1 not supported\n" , __func__); s->ovl1c[0 ] = value &0x80ffffff ; s->dma_ch[1 ].up = (value &OVLC1_EN ) || (s->control[0 ] &LCCR0_SDS );
@@ -472,7 +472,7 @@ static void pxa2xx_lcdc_write(void *opaque, hwaddr offset,case OVL2C1 :if (!(s->ovl2c[0 ] &OVLC1_EN ) && (value &OVLC1_EN )) -printf ("%s: Overlay 2 not supported\n" , __FUNCTION__); +printf ("%s: Overlay 2 not supported\n" , __func__); s->ovl2c[0 ] = value &0x80ffffff ; s->dma_ch[2 ].up = !!(value &OVLC1_EN );
@@ -486,7 +486,7 @@ static void pxa2xx_lcdc_write(void *opaque, hwaddr offset,case CCR :if (!(s->ccr &CCR_CEN ) && (value &CCR_CEN )) -printf ("%s: Hardware cursor unimplemented\n" , __FUNCTION__); +printf ("%s: Hardware cursor unimplemented\n" , __func__); s->ccr = value &0x81ffffe7 ; s->dma_ch[5 ].up = !!(value &CCR_CEN );
@@ -560,7 +560,7 @@ static void pxa2xx_lcdc_write(void *opaque, hwaddr offset,default : fail: -hw_error ("%s: Bad offset " REG_FMT "\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " REG_FMT "\n" , __func__, offset); } }
@@ -1050,7 +1050,7 @@ PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem, s->dest_width =4 ;break ;default : -fprintf (stderr,"%s: Bad color depth\n" , __FUNCTION__); +fprintf (stderr,"%s: Bad color depth\n" , __func__);exit (1 ); }
hw/display/qxl-render.c +3 -3
@@ -78,7 +78,7 @@ void qxl_render_resize(PCIQXLDevice *qxl) qxl->guest_primary.bits_pp =32 ;break ;default : -fprintf (stderr,"%s: unhandled format: %x\n" , __FUNCTION__, +fprintf (stderr,"%s: unhandled format: %x\n" , __func__, qxl->guest_primary.surface.format); qxl->guest_primary.bytes_pp =4 ; qxl->guest_primary.bits_pp =32 ;
@@ -248,7 +248,7 @@ static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor,break ;default :fprintf (stderr,"%s: not implemented: type %d\n" , - __FUNCTION__, cursor->header.type); + __func__, cursor->header.type); goto fail; }return c;
@@ -275,7 +275,7 @@ int qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext) }if (qxl->debug >1 && cmd->type !=QXL_CURSOR_MOVE ) { -fprintf (stderr,"%s" , __FUNCTION__); +fprintf (stderr,"%s" , __func__);qxl_log_cmd_cursor (qxl, cmd, ext->group_id);fprintf (stderr,"\n" ); }
hw/display/qxl.h +1 -1
@@ -133,7 +133,7 @@ typedef struct PCIQXLDevice {#define PCI_QXL (obj) OBJECT_CHECK(PCIQXLDevice, (obj), TYPE_PCI_QXL)#define PANIC_ON (x) if ((x)) { \ - printf("%s: PANIC %s failed\n", __FUNCTION__, #x); \ + printf("%s: PANIC %s failed\n", __func__, #x); \ abort(); \ }
hw/display/tc6393xb.c +1 -1
@@ -148,7 +148,7 @@ static void tc6393xb_gpio_set(void *opaque, int line, int level)// TC6393xbState *s = opaque; if (line >TC6393XB_GPIOS ) { -printf ("%s: No GPIO pin %i\n" , __FUNCTION__, line); +printf ("%s: No GPIO pin %i\n" , __func__, line);return ; }
hw/display/xenfb.c +1 -1
@@ -643,7 +643,7 @@ static void xenfb_guest_copy(struct XenFB *xenfb, int x, int y, int w, int h) }if (oops)/* should not happen */ xen_pv_printf (&xenfb->c.xendev,0 ,"%s: oops: convert %d -> %d bpp?\n" , - __FUNCTION__, xenfb->depth, bpp); + __func__, xenfb->depth, bpp);dpy_gfx_update (xenfb->con, x, y, w, h); }
hw/dma/omap_dma.c +13 -13
@@ -161,7 +161,7 @@ static void omap_dma_channel_load(struct omap_dma_channel_s *ch) a->pck_element =0 ;if (unlikely (!ch->elements || !ch->frames)) { -printf ("%s: bad DMA request\n" , __FUNCTION__); +printf ("%s: bad DMA request\n" , __func__);return ; }
@@ -519,7 +519,7 @@ static void omap_dma_transfer_setup(struct soc_dma_ch_s *dma)continue ;#endif printf ("%s: Bus time-out in DMA%i operation\n" , - __FUNCTION__, dma->num); + __func__, dma->num); } min_elems =INT_MAX ;
@@ -879,14 +879,14 @@ static int omap_dma_ch_reg_write(struct omap_dma_s *s, ch->pack[0 ] = (value &0x0040 ) >>6 ; ch->port[0 ] = (enum omap_dma_port ) ((value &0x003c ) >>2 );if (ch->port[0 ] >= __omap_dma_port_last) -printf ("%s: invalid DMA port %i\n" , __FUNCTION__, +printf ("%s: invalid DMA port %i\n" , __func__, ch->port[0 ]);if (ch->port[1 ] >= __omap_dma_port_last) -printf ("%s: invalid DMA port %i\n" , __FUNCTION__, +printf ("%s: invalid DMA port %i\n" , __func__, ch->port[1 ]); ch->data_type =1 << (value &3 );if ((value &3 ) ==3 ) { -printf ("%s: bad data_type for DMA channel\n" , __FUNCTION__); +printf ("%s: bad data_type for DMA channel\n" , __func__); ch->data_type >>=1 ; }break ;
@@ -1440,7 +1440,7 @@ static int omap_dma_sys_read(struct omap_dma_s *s, int offset,case 0x482 :/* DMA_PCh1_SR */ case 0x4c0 :/* DMA_PChD_SR_0 */ printf ("%s: Physical Channel Status Registers not implemented.\n" , - __FUNCTION__); + __func__); *ret =0xff ;break ;
@@ -1898,13 +1898,13 @@ static void omap_dma4_write(void *opaque, hwaddr addr,omap_dma_reset (s->dma); s->ocp = value &0x3321 ;if (((s->ocp >>12 ) &3 ) ==3 )/* MIDLEMODE */ -fprintf (stderr,"%s: invalid DMA power mode\n" , __FUNCTION__); +fprintf (stderr,"%s: invalid DMA power mode\n" , __func__);return ;case 0x78 :/* DMA4_GCR */ s->gcr = value &0x00ff00ff ;if ((value &0xff ) ==0x00 )/* MAX_CHANNEL_FIFO_DEPTH */ -fprintf (stderr,"%s: wrong FIFO depth in GCR\n" , __FUNCTION__); +fprintf (stderr,"%s: wrong FIFO depth in GCR\n" , __func__);return ; case 0x80 ... 0xfff:
@@ -1935,7 +1935,7 @@ static void omap_dma4_write(void *opaque, hwaddr addr, ch->src_sync = (value >>24 ) &1 ;/* XXX For CamDMA must be 1 */ if (ch->buf_disable && !ch->src_sync)fprintf (stderr,"%s: Buffering disable is not allowed in " -"destination synchronised mode\n" , __FUNCTION__); +"destination synchronised mode\n" , __func__); ch->prefetch = (value >>23 ) &1 ; ch->bs = (value >>18 ) &1 ; ch->transparent_copy = (value >>17 ) &1 ;
@@ -1947,7 +1947,7 @@ static void omap_dma4_write(void *opaque, hwaddr addr, ch->fs = (value &0x0020 ) >>5 ;if (ch->fs && ch->bs && ch->mode[0 ] && ch->mode[1 ])fprintf (stderr,"%s: For a packet transfer at least one port " -"must be constant-addressed\n" , __FUNCTION__); +"must be constant-addressed\n" , __func__); ch->sync = (value &0x001f ) | ((value >>14 ) &0x0060 );/* XXX must be 0x01 for CamDMA */
@@ -1978,7 +1978,7 @@ static void omap_dma4_write(void *opaque, hwaddr addr, ch->endian_lock[1 ] =(value >>18 ) &1 ;if (ch->endian[0 ] != ch->endian[1 ])fprintf (stderr,"%s: DMA endianness conversion enable attempt\n" , - __FUNCTION__); + __func__); ch->write_mode = (value >>16 ) &3 ; ch->burst[1 ] = (value &0xc000 ) >>14 ; ch->pack[1 ] = (value &0x2000 ) >>13 ;
@@ -1988,10 +1988,10 @@ static void omap_dma4_write(void *opaque, hwaddr addr, ch->translate[0 ] = (value &0x003c ) >>2 ;if (ch->translate[0 ] | ch->translate[1 ])fprintf (stderr,"%s: bad MReqAddressTranslate sideband signal\n" , - __FUNCTION__); + __func__); ch->data_type =1 << (value &3 );if ((value &3 ) ==3 ) { -printf ("%s: bad data_type for DMA channel\n" , __FUNCTION__); +printf ("%s: bad data_type for DMA channel\n" , __func__); ch->data_type >>=1 ; }break ;
hw/dma/pxa2xx_dma.c +7 -7
@@ -169,7 +169,7 @@ static inline void pxa2xx_dma_descriptor_fetch( s->chan[ch].dest &= ~3 ;if (s->chan[ch].cmd & (DCMD_CMPEN |DCMD_FLYBYS |DCMD_FLYBYT )) -printf ("%s: unsupported mode in channel %i\n" , __FUNCTION__, ch); +printf ("%s: unsupported mode in channel %i\n" , __func__, ch);if (s->chan[ch].cmd &DCMD_STARTIRQEN ) s->chan[ch].state |=DCSR_STARTINTR ;
@@ -264,7 +264,7 @@ static uint64_t pxa2xx_dma_read(void *opaque, hwaddr offset,unsigned int channel;if (size !=4 ) { -hw_error ("%s: Bad access width\n" , __FUNCTION__); +hw_error ("%s: Bad access width\n" , __func__);return 5 ; }
@@ -312,7 +312,7 @@ static uint64_t pxa2xx_dma_read(void *opaque, hwaddr offset, } } -hw_error ("%s: Bad offset 0x" TARGET_FMT_plx"\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset 0x" TARGET_FMT_plx"\n" , __func__, offset);return 7 ; }
@@ -323,7 +323,7 @@ static void pxa2xx_dma_write(void *opaque, hwaddr offset,unsigned int channel;if (size !=4 ) { -hw_error ("%s: Bad access width\n" , __FUNCTION__); +hw_error ("%s: Bad access width\n" , __func__);return ; }
@@ -337,7 +337,7 @@ static void pxa2xx_dma_write(void *opaque, hwaddr offset,if (value &DRCMR_MAPVLD )if ((value &DRCMR_CHLNUM ) > s->channels)hw_error ("%s: Bad DMA channel %i\n" , - __FUNCTION__, (unsigned )value &DRCMR_CHLNUM ); + __func__, (unsigned )value &DRCMR_CHLNUM ); s->req[channel] = value;break ;
@@ -416,7 +416,7 @@ static void pxa2xx_dma_write(void *opaque, hwaddr offset,break ; } fail: -hw_error ("%s: Bad offset " TARGET_FMT_plx"\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " TARGET_FMT_plx"\n" , __func__, offset); } }
@@ -431,7 +431,7 @@ static void pxa2xx_dma_request(void *opaque, int req_num, int on)PXA2xxDMAState *s = opaque;int ch;if (req_num <0 || req_num >=PXA2XX_DMA_NUM_REQUESTS ) -hw_error ("%s: Bad DMA request %i\n" , __FUNCTION__, req_num); +hw_error ("%s: Bad DMA request %i\n" , __func__, req_num);if (!(s->req[req_num] &DRCMR_MAPVLD ))return ;
hw/gpio/max7310.c +4 -4
@@ -67,7 +67,7 @@ static int max7310_rx(I2CSlave *i2c)default :#ifdef VERBOSE -printf ("%s: unknown register %02x\n" , __FUNCTION__, s->command); +printf ("%s: unknown register %02x\n" , __func__, s->command);#endif break ; }
@@ -82,7 +82,7 @@ static int max7310_tx(I2CSlave *i2c, uint8_t data)if (s->len ++ >1 ) {#ifdef VERBOSE -printf ("%s: message too long (%i bytes)\n" , __FUNCTION__, s->len); +printf ("%s: message too long (%i bytes)\n" , __func__, s->len);#endif return 1 ; }
@@ -121,7 +121,7 @@ static int max7310_tx(I2CSlave *i2c, uint8_t data)break ;default :#ifdef VERBOSE -printf ("%s: unknown register %02x\n" , __FUNCTION__, s->command); +printf ("%s: unknown register %02x\n" , __func__, s->command);#endif return 1 ; }
@@ -141,7 +141,7 @@ static int max7310_event(I2CSlave *i2c, enum i2c_event event)case I2C_FINISH :#ifdef VERBOSE if (s->len ==1 ) -printf ("%s: message too short (%i bytes)\n" , __FUNCTION__, s->len); +printf ("%s: message too short (%i bytes)\n" , __func__, s->len);#endif break ;default :
hw/gpio/omap_gpio.c +1 -1
@@ -399,7 +399,7 @@ static void omap2_gpio_module_write(void *opaque, hwaddr addr,case 0x10 :/* GPIO_SYSCONFIG */ if (((value >>3 ) &3 ) ==3 ) -fprintf (stderr,"%s: bad IDLEMODE value\n" , __FUNCTION__); +fprintf (stderr,"%s: bad IDLEMODE value\n" , __func__);if (value &2 )omap2_gpio_module_reset (s); s->config[0 ] = value &0x1d ;
hw/i2c/omap_i2c.c +3 -3
@@ -341,12 +341,12 @@ static void omap_i2c_write(void *opaque, hwaddr addr, }if ((value & (1 <<15 )) && !(value & (1 <<10 ))) {/* MST */ fprintf (stderr,"%s: I^2C slave mode not supported\n" , - __FUNCTION__); + __func__);break ; }if ((value & (1 <<15 )) && value & (1 <<8 )) {/* XA */ fprintf (stderr,"%s: 10-bit addressing mode not supported\n" , - __FUNCTION__); + __func__);break ; }if ((value & (1 <<15 )) && value & (1 <<0 )) {/* STT */
@@ -393,7 +393,7 @@ static void omap_i2c_write(void *opaque, hwaddr addr,omap_i2c_interrupts_update (s); }if (value & (1 <<15 ))/* ST_EN */ -fprintf (stderr,"%s: System Test not supported\n" , __FUNCTION__); +fprintf (stderr,"%s: System Test not supported\n" , __func__);break ;default :
hw/ide/ahci.c +1 -1
@@ -1053,7 +1053,7 @@ static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis,g_assert (is_ncq (ncq_fis->command));if (ncq_tfs->used) {/* error - already in use */ -fprintf (stderr,"%s: tag %d already used\n" , __FUNCTION__, tag); +fprintf (stderr,"%s: tag %d already used\n" , __func__, tag);return ; }
hw/ide/microdrive.c +2 -2
@@ -156,7 +156,7 @@ static uint8_t md_attr_read(PCMCIACardState *card, uint32_t at)return 0x00 ;#ifdef VERBOSE default : -printf ("%s: Bad attribute space register %02x\n" , __FUNCTION__, at); +printf ("%s: Bad attribute space register %02x\n" , __func__, at);#endif }
@@ -193,7 +193,7 @@ static void md_attr_write(PCMCIACardState *card, uint32_t at, uint8_t value)case 0x06 :/* Socket and Copy Register */ break ;default : -printf ("%s: Bad attribute space register %02x\n" , __FUNCTION__, at); +printf ("%s: Bad attribute space register %02x\n" , __func__, at); } }
hw/input/lm832x.c +3 -3
@@ -239,7 +239,7 @@ static uint8_t lm_kbd_read(LM823KbdState *s, int reg, int byte)default :lm_kbd_error (s,ERR_CMDUNK ); -fprintf (stderr,"%s: unknown command %02x\n" , __FUNCTION__, reg); +fprintf (stderr,"%s: unknown command %02x\n" , __func__, reg);return 0x00 ; }
@@ -331,7 +331,7 @@ static void lm_kbd_write(LM823KbdState *s, int reg, int byte, uint8_t value)if ((value &3 ) && (value &3 ) !=3 ) {lm_kbd_error (s,ERR_BADPAR );fprintf (stderr,"%s: invalid clock setting in RCPWM\n" , - __FUNCTION__); + __func__); }/* TODO: Validate that the command is only issued once */ break ;
@@ -378,7 +378,7 @@ static void lm_kbd_write(LM823KbdState *s, int reg, int byte, uint8_t value)break ;default :lm_kbd_error (s,ERR_CMDUNK ); -fprintf (stderr,"%s: unknown command %02x\n" , __FUNCTION__, reg); +fprintf (stderr,"%s: unknown command %02x\n" , __func__, reg);break ; } }
hw/input/pxa2xx_keypad.c +3 -3
@@ -231,7 +231,7 @@ static uint64_t pxa2xx_keypad_read(void *opaque, hwaddr offset,return s->kpkdi;break ;default : -hw_error ("%s: Bad offset " REG_FMT "\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " REG_FMT "\n" , __func__, offset); }return 0 ;
@@ -278,7 +278,7 @@ static void pxa2xx_keypad_write(void *opaque, hwaddr offset,break ;default : -hw_error ("%s: Bad offset " REG_FMT "\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " REG_FMT "\n" , __func__, offset); } }
@@ -326,7 +326,7 @@ void pxa27x_register_keypad(PXA2xxKeyPadState *kp, const struct keymap *map, int size) {if (!map || size <0x80 ) { -fprintf (stderr,"%s - No PXA keypad map defined\n" , __FUNCTION__); +fprintf (stderr,"%s - No PXA keypad map defined\n" , __func__);exit (-1 ); }
hw/input/tsc2005.c +4 -4
@@ -201,7 +201,7 @@ static void tsc2005_write(TSC2005State *s, int reg, uint16_t data)if (s->enabled != !(data &0x4000 )) { s->enabled = !(data &0x4000 );fprintf (stderr,"%s: touchscreen sense %sabled\n" , - __FUNCTION__, s->enabled ?"en" :"dis" ); + __func__, s->enabled ?"en" :"dis" );if (s->busy && !s->enabled)timer_del (s->timer); s->busy = s->busy && s->enabled;
@@ -210,7 +210,7 @@ static void tsc2005_write(TSC2005State *s, int reg, uint16_t data) s->timing[0 ] = data &0x1fff ;if ((s->timing[0 ] >>11 ) ==3 )fprintf (stderr,"%s: illegal conversion clock setting\n" , - __FUNCTION__); + __func__);break ;case 0xd :/* CFR1 */ s->timing[1 ] = data &0xf07 ;
@@ -222,7 +222,7 @@ static void tsc2005_write(TSC2005State *s, int reg, uint16_t data)default :fprintf (stderr,"%s: write into read-only register %x\n" , - __FUNCTION__, reg); + __func__, reg); } }
@@ -338,7 +338,7 @@ static uint8_t tsc2005_txrx_word(void *opaque, uint8_t value)if (s->enabled != !(value &1 )) { s->enabled = !(value &1 );fprintf (stderr,"%s: touchscreen sense %sabled\n" , - __FUNCTION__, s->enabled ?"en" :"dis" ); + __func__, s->enabled ?"en" :"dis" );if (s->busy && !s->enabled)timer_del (s->timer); s->busy = s->busy && s->enabled;
hw/input/tsc210x.c +2 -2
@@ -287,7 +287,7 @@ static void tsc2102_audio_rate_update(TSC210xState *s) rate->fsref == ((s->audio_ctrl3 >> 13) & 1))/* REFFS */break ;if (!rate->rate) { -printf ("%s: unknown sampling rate configured\n" , __FUNCTION__); +printf ("%s: unknown sampling rate configured\n" , __func__);return ; }
@@ -913,7 +913,7 @@ uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len)uint32_t ret =0 ;if (len !=16 ) -hw_error ("%s: FIXME: bad SPI word width %i\n" , __FUNCTION__, len); +hw_error ("%s: FIXME: bad SPI word width %i\n" , __func__, len);/* TODO: sequential reads etc - how do we make sure the host doesn't * unintentionally read out a conversion result from a register while
hw/intc/omap_intc.c +1 -1
@@ -540,7 +540,7 @@ static void omap2_inth_write(void *opaque, hwaddr addr,* for every register, see Chapter 3 and 4 for privileged mode. */ if (value &1 )fprintf (stderr,"%s: protection mode enable attempt\n" , - __FUNCTION__); + __func__);return ;case 0x50 :/* INTC_IDLE */
hw/isa/vt82c686.c +1 -1
@@ -30,7 +30,7 @@//#define DEBUG_VT82C686B #ifdef DEBUG_VT82C686B -#define DPRINTF (fmt, ...) fprintf(stderr, "%s: " fmt, __FUNCTION__, ##__VA_ARGS__) +#define DPRINTF (fmt, ...) fprintf(stderr, "%s: " fmt, __func__, ##__VA_ARGS__)#else #define DPRINTF (fmt, ...)#endif
hw/mips/gt64xxx_pci.c +1 -1
@@ -33,7 +33,7 @@//#define DEBUG #ifdef DEBUG -#define DPRINTF (fmt, ...) fprintf(stderr, "%s: " fmt, __FUNCTION__, ##__VA_ARGS__) +#define DPRINTF (fmt, ...) fprintf(stderr, "%s: " fmt, __func__, ##__VA_ARGS__)#else #define DPRINTF (fmt, ...)#endif
hw/misc/cbus.c +6 -6
@@ -62,7 +62,7 @@ static void cbus_io(CBusPriv *s) s->slave[s->addr]->io (s->slave[s->addr]->opaque, s->rw, s->reg, &s->val); else - hw_error("%s: bad slave address %i\n", __FUNCTION__, s->addr); + hw_error("%s: bad slave address %i\n", __func__, s->addr); }static void cbus_cycle (CBusPriv *s)
@@ -299,7 +299,7 @@ static inline uint16_t retu_read(CBusRetu *s, int reg)return 0x0000 ;default : -hw_error ("%s: bad register %02x\n" , __FUNCTION__, reg); +hw_error ("%s: bad register %02x\n" , __func__, reg); } }
@@ -372,7 +372,7 @@ static inline void retu_write(CBusRetu *s, int reg, uint16_t val)break ;default : -hw_error ("%s: bad register %02x\n" , __FUNCTION__, reg); +hw_error ("%s: bad register %02x\n" , __func__, reg); } }
@@ -538,7 +538,7 @@ static inline uint16_t tahvo_read(CBusTahvo *s, int reg)return 0x0000 ;default : -hw_error ("%s: bad register %02x\n" , __FUNCTION__, reg); +hw_error ("%s: bad register %02x\n" , __func__, reg); } }
@@ -567,7 +567,7 @@ static inline void tahvo_write(CBusTahvo *s, int reg, uint16_t val)if (s->backlight != (val &0x7f )) { s->backlight = val &0x7f ;printf ("%s: LCD backlight now at %i / 127\n" , - __FUNCTION__, s->backlight); + __func__, s->backlight); }break ;
@@ -588,7 +588,7 @@ static inline void tahvo_write(CBusTahvo *s, int reg, uint16_t val)break ;default : -hw_error ("%s: bad register %02x\n" , __FUNCTION__, reg); +hw_error ("%s: bad register %02x\n" , __func__, reg); } }
hw/misc/omap_clk.c +2 -2
@@ -1109,7 +1109,7 @@ struct clk *omap_findclk(struct omap_mpu_state_s *mpu, const char *name)for (i = mpu->clks; i->name; i ++)if (!strcmp (i->name, name) || (i->alias && !strcmp (i->alias, name)))return i; -hw_error ("%s: %s not found\n" , __FUNCTION__, name); +hw_error ("%s: %s not found\n" , __func__, name); }void omap_clk_get (struct clk *clk)
@@ -1120,7 +1120,7 @@ void omap_clk_get(struct clk *clk)void omap_clk_put (struct clk *clk) {if (!(clk->usecount --)) -hw_error ("%s: %s is not in use\n" , __FUNCTION__, clk->name); +hw_error ("%s: %s is not in use\n" , __func__, clk->name); }static void omap_clk_update (struct clk *clk)
hw/misc/omap_gpmc.c +3 -3
@@ -643,7 +643,7 @@ static void omap_gpmc_write(void *opaque, hwaddr addr,case 0x010 :/* GPMC_SYSCONFIG */ if ((value >>3 ) ==0x3 )fprintf (stderr,"%s: bad SDRAM idle mode %" PRIi64"\n" , - __FUNCTION__, value >>3 ); + __func__, value >>3 );if (value &2 )omap_gpmc_reset (s); s->sysconfig = value &0x19 ;
@@ -806,7 +806,7 @@ static void omap_gpmc_write(void *opaque, hwaddr addr,break ;case 0x230 :/* GPMC_TESTMODE_CTRL */ if (value &7 ) -fprintf (stderr,"%s: test mode enable attempt\n" , __FUNCTION__); +fprintf (stderr,"%s: test mode enable attempt\n" , __func__);break ;default :
@@ -864,7 +864,7 @@ void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, MemoryRegion *iomem)assert (iomem);if (cs <0 || cs >=8 ) { -fprintf (stderr,"%s: bad chip-select %i\n" , __FUNCTION__, cs); +fprintf (stderr,"%s: bad chip-select %i\n" , __func__, cs);exit (-1 ); } f = &s->cs_file[cs];
hw/misc/omap_l4.c +2 -2
@@ -126,7 +126,7 @@ struct omap_target_agent_s *omap_l4ta_get(struct omap_l4_s *bus,break ; }if (!ta) { -fprintf (stderr,"%s: bad target agent (%i)\n" , __FUNCTION__, cs); +fprintf (stderr,"%s: bad target agent (%i)\n" , __func__, cs);exit (-1 ); }
@@ -151,7 +151,7 @@ hwaddr omap_l4_attach(struct omap_target_agent_s *ta,hwaddr base;if (region <0 || region >= ta->regions) { -fprintf (stderr,"%s: bad io region (%i)\n" , __FUNCTION__, region); +fprintf (stderr,"%s: bad io region (%i)\n" , __func__, region);exit (-1 ); }
hw/misc/omap_sdrc.c +1 -1
@@ -109,7 +109,7 @@ static void omap_sdrc_write(void *opaque, hwaddr addr,case 0x10 :/* SDRC_SYSCONFIG */ if ((value >>3 ) !=0x2 )fprintf (stderr,"%s: bad SDRAM idle mode %i\n" , - __FUNCTION__, (unsigned )value >>3 ); + __func__, (unsigned )value >>3 );if (value &2 )omap_sdrc_reset (s); s->config = value &0x18 ;
hw/misc/omap_tap.c +3 -3
@@ -44,7 +44,7 @@ static uint64_t omap_tap_read(void *opaque, hwaddr addr,case omap3430:return 0x1b7ae02f ;/* ES 2 */ default : -hw_error ("%s: Bad mpu model\n" , __FUNCTION__); +hw_error ("%s: Bad mpu model\n" , __func__); }case 0x208 :/* PRODUCTION_ID_reg for OMAP2 */
@@ -61,7 +61,7 @@ static uint64_t omap_tap_read(void *opaque, hwaddr addr,case omap3430:return 0x000000f0 ;default : -hw_error ("%s: Bad mpu model\n" , __FUNCTION__); +hw_error ("%s: Bad mpu model\n" , __func__); }case 0x20c :
@@ -75,7 +75,7 @@ static uint64_t omap_tap_read(void *opaque, hwaddr addr,case omap3430:return 0xcafeb7ae ;/* ES 2 */ default : -hw_error ("%s: Bad mpu model\n" , __FUNCTION__); +hw_error ("%s: Bad mpu model\n" , __func__); }case 0x218 :/* DIE_ID_reg */
hw/misc/tmp105.c +1 -1
@@ -131,7 +131,7 @@ static void tmp105_write(TMP105State *s)case TMP105_REG_CONFIG :if (s->buf[0 ] & ~s->config & (1 <<0 ))/* SD */ -printf ("%s: TMP105 shutdown\n" , __FUNCTION__); +printf ("%s: TMP105 shutdown\n" , __func__); s->config = s->buf[0 ]; s->faults = tmp105_faultq[(s->config >>3 ) &3 ];/* F */ tmp105_alarm_update (s);
hw/pci-host/bonito.c +1 -1
@@ -50,7 +50,7 @@//#define DEBUG_BONITO #ifdef DEBUG_BONITO -#define DPRINTF (fmt, ...) fprintf(stderr, "%s: " fmt, __FUNCTION__, ##__VA_ARGS__) +#define DPRINTF (fmt, ...) fprintf(stderr, "%s: " fmt, __func__, ##__VA_ARGS__)#else #define DPRINTF (fmt, ...)#endif
hw/sd/pxa2xx_mmci.c +3 -3
@@ -330,7 +330,7 @@ static uint64_t pxa2xx_mmci_read(void *opaque, hwaddr offset, unsigned size)case MMC_BLKS_REM :return s->numblk;default : -hw_error ("%s: Bad offset " REG_FMT "\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " REG_FMT "\n" , __func__, offset); }return 0 ;
@@ -369,7 +369,7 @@ static void pxa2xx_mmci_write(void *opaque,case MMC_SPI : s->spi = value &0xf ;if (value &SPI_SPI_MODE ) -printf ("%s: attempted to use card in SPI mode\n" , __FUNCTION__); +printf ("%s: attempted to use card in SPI mode\n" , __func__);break ;case MMC_CMDAT :
@@ -442,7 +442,7 @@ static void pxa2xx_mmci_write(void *opaque,break ;default : -hw_error ("%s: Bad offset " REG_FMT "\n" , __FUNCTION__, offset); +hw_error ("%s: Bad offset " REG_FMT "\n" , __func__, offset); } }
hw/ssi/omap_spi.c +3 -3
@@ -295,10 +295,10 @@ static void omap_mcspi_write(void *opaque, hwaddr addr,if ((value ^ s->ch[ch].config) & (3 <<14 ))/* DMAR | DMAW */ omap_mcspi_dmarequest_update (s->ch + ch);if (((value >>12 ) &3 ) ==3 )/* TRM */ -fprintf (stderr,"%s: invalid TRM value (3)\n" , __FUNCTION__); +fprintf (stderr,"%s: invalid TRM value (3)\n" , __func__);if (((value >>7 ) &0x1f ) <3 )/* WL */ fprintf (stderr,"%s: invalid WL value (%" PRIx64")\n" , - __FUNCTION__, (value >>7 ) &0x1f ); + __func__, (value >>7 ) &0x1f ); s->ch[ch].config = value &0x7fffff ;break ;
@@ -367,7 +367,7 @@ void omap_mcspi_attach(struct omap_mcspi_s *s, int chipselect) {if (chipselect <0 || chipselect >= s->chnum) -hw_error ("%s: Bad chipselect %i\n" , __FUNCTION__, chipselect); +hw_error ("%s: Bad chipselect %i\n" , __func__, chipselect); s->ch[chipselect].txrx = txrx; s->ch[chipselect].opaque = opaque;
hw/timer/omap_gptimer.c +3 -3
@@ -357,7 +357,7 @@ static void omap_gp_timer_write(void *opaque, hwaddr addr, s->config = value &0x33d ;if (((value >>3 ) &3 ) ==3 )/* IDLEMODE */ fprintf (stderr,"%s: illegal IDLEMODE value in TIOCP_CFG\n" , - __FUNCTION__); + __func__);if (value &2 )/* SOFTRESET */ omap_gp_timer_reset (s);break ;
@@ -395,10 +395,10 @@ static void omap_gp_timer_write(void *opaque, hwaddr addr, s->st = (value >>0 ) &1 ;if (s->inout && s->trigger != gpt_trigger_none)fprintf (stderr,"%s: GP timer pin must be an output " -"for this trigger mode\n" , __FUNCTION__); +"for this trigger mode\n" , __func__);if (!s->inout && s->capture != gpt_capture_none)fprintf (stderr,"%s: GP timer pin must be an input " -"for this capture mode\n" , __FUNCTION__); +"for this capture mode\n" , __func__);if (s->trigger == gpt_trigger_none)omap_gp_timer_out (s, s->scpwm);/* TODO: make sure this doesn't overflow 32-bits */
hw/timer/twl92230.c +3 -3
@@ -403,7 +403,7 @@ static uint8_t menelaus_read(void *opaque, uint8_t addr)default :#ifdef VERBOSE -printf ("%s: unknown register %02x\n" , __FUNCTION__, addr); +printf ("%s: unknown register %02x\n" , __func__, addr);#endif break ; }
@@ -615,7 +615,7 @@ static void menelaus_write(void *opaque, uint8_t addr, uint8_t value) rtc_badness:default :fprintf (stderr,"%s: bad RTC_UPDATE value %02x\n" , - __FUNCTION__, value); + __func__, value); s->status |=1 <<10 ;/* RTCERR */ menelaus_update (s); }
@@ -708,7 +708,7 @@ static void menelaus_write(void *opaque, uint8_t addr, uint8_t value)default :#ifdef VERBOSE -printf ("%s: unknown register %02x\n" , __FUNCTION__, addr); +printf ("%s: unknown register %02x\n" , __func__, addr);#endif } }
hw/usb/desc.c +1 -1
@@ -688,7 +688,7 @@ int usb_desc_get_descriptor(USBDevice *dev, USBPacket *p,break ;default : -fprintf (stderr,"%s: %d unknown type %d (len %zd)\n" , __FUNCTION__, +fprintf (stderr,"%s: %d unknown type %d (len %zd)\n" , __func__, dev->addr, type, len);break ; }
hw/usb/dev-bluetooth.c +2 -2
@@ -274,13 +274,13 @@ static void usb_bt_fifo_enqueue(struct usb_hci_in_fifo_s *fifo,if (off <=DFIFO_LEN_MASK ) {if (off + len >DFIFO_LEN_MASK +1 && (fifo->dsize = off + len) > (DFIFO_LEN_MASK +1 ) *2 ) { -fprintf (stderr,"%s: can't alloc %i bytes\n" , __FUNCTION__, len); +fprintf (stderr,"%s: can't alloc %i bytes\n" , __func__, len);exit (-1 ); } buf = fifo->data + off; }else {if (fifo->dlen > fifo->dsize) { -fprintf (stderr,"%s: can't alloc %i bytes\n" , __FUNCTION__, len); +fprintf (stderr,"%s: can't alloc %i bytes\n" , __func__, len);exit (-1 ); } buf = fifo->data + off - fifo->dsize;
hw/usb/hcd-musb.c +2 -2
@@ -253,8 +253,8 @@/* #define MUSB_DEBUG */ #ifdef MUSB_DEBUG -#define TRACE (fmt,...) fprintf(stderr, "%s@%d: " fmt "\n", __FUNCTION__, \ - __LINE__, ##__VA_ARGS__) +#define TRACE (fmt, ...) fprintf(stderr, "%s@%d: " fmt "\n", __func__, \ + __LINE__, ##__VA_ARGS__)#else #define TRACE (...)#endif
hw/usb/tusb6010.c +7 -7
@@ -296,7 +296,7 @@ static uint32_t tusb_async_readb(void *opaque, hwaddr addr) }printf ("%s: unknown register at %03x\n" , - __FUNCTION__, (int ) (addr &0xfff )); + __func__, (int ) (addr &0xfff ));return 0 ; }
@@ -313,7 +313,7 @@ static uint32_t tusb_async_readh(void *opaque, hwaddr addr) }printf ("%s: unknown register at %03x\n" , - __FUNCTION__, (int ) (addr &0xfff )); + __func__, (int ) (addr &0xfff ));return 0 ; }
@@ -436,7 +436,7 @@ static uint32_t tusb_async_readw(void *opaque, hwaddr addr)return 0x54059adf ; } -printf ("%s: unknown register at %03x\n" , __FUNCTION__, offset); +printf ("%s: unknown register at %03x\n" , __func__, offset);return 0 ; }
@@ -456,7 +456,7 @@ static void tusb_async_writeb(void *opaque, hwaddr addr,default :printf ("%s: unknown register at %03x\n" , - __FUNCTION__, (int ) (addr &0xfff )); + __func__, (int ) (addr &0xfff ));return ; } }
@@ -477,7 +477,7 @@ static void tusb_async_writeh(void *opaque, hwaddr addr,default :printf ("%s: unknown register at %03x\n" , - __FUNCTION__, (int ) (addr &0xfff )); + __func__, (int ) (addr &0xfff ));return ; } }
@@ -505,7 +505,7 @@ static void tusb_async_writew(void *opaque, hwaddr addr, s->dev_config = value; s->host_mode = (value &TUSB_DEV_CONF_USB_HOST_MODE );if (value &TUSB_DEV_CONF_PROD_TEST_MODE ) -hw_error ("%s: Product Test mode not allowed\n" , __FUNCTION__); +hw_error ("%s: Product Test mode not allowed\n" , __func__);break ;case TUSB_PHY_OTG_CTRL_ENABLE :
@@ -636,7 +636,7 @@ static void tusb_async_writew(void *opaque, hwaddr addr,break ;default : -printf ("%s: unknown register at %03x\n" , __FUNCTION__, offset); +printf ("%s: unknown register at %03x\n" , __func__, offset);return ; } }
hw/xenpv/xen_domainbuild.c +8 -8
@@ -25,22 +25,22 @@ static int xenstore_domain_mkdir(char *path)int i;if (!xs_mkdir (xenstore,0 , path)) { -fprintf (stderr,"%s: xs_mkdir %s: failed\n" , __FUNCTION__, path); +fprintf (stderr,"%s: xs_mkdir %s: failed\n" , __func__, path);return -1 ; }if (!xs_set_permissions (xenstore,0 , path, perms_ro,2 )) { -fprintf (stderr,"%s: xs_set_permissions failed\n" , __FUNCTION__); +fprintf (stderr,"%s: xs_set_permissions failed\n" , __func__);return -1 ; }for (i =0 ; writable[i]; i++) {snprintf (subpath,sizeof (subpath),"%s/%s" , path, writable[i]);if (!xs_mkdir (xenstore,0 , subpath)) { -fprintf (stderr,"%s: xs_mkdir %s: failed\n" , __FUNCTION__, subpath); +fprintf (stderr,"%s: xs_mkdir %s: failed\n" , __func__, subpath);return -1 ; }if (!xs_set_permissions (xenstore,0 , subpath, perms_rw,2 )) { -fprintf (stderr,"%s: xs_set_permissions failed\n" , __FUNCTION__); +fprintf (stderr,"%s: xs_set_permissions failed\n" , __func__);return -1 ; } }
@@ -158,7 +158,7 @@ static int xen_domain_watcher(void)char byte;if (pipe (fd) !=0 ) { -qemu_log ("%s: Huh? pipe error: %s\n" , __FUNCTION__,strerror (errno)); +qemu_log ("%s: Huh? pipe error: %s\n" , __func__,strerror (errno));return -1 ; }if (fork () !=0 )
@@ -190,7 +190,7 @@ static int xen_domain_watcher(void)case -1 :if (errno ==EINTR )continue ; -qemu_log ("%s: Huh? read error: %s\n" , __FUNCTION__,strerror (errno)); +qemu_log ("%s: Huh? read error: %s\n" , __func__,strerror (errno)); qemu_running =0 ;break ;case 0 :
@@ -198,13 +198,13 @@ static int xen_domain_watcher(void) qemu_running =0 ;break ;default : -qemu_log ("%s: Huh? data on the watch pipe?\n" , __FUNCTION__); +qemu_log ("%s: Huh? data on the watch pipe?\n" , __func__);break ; } }/* cleanup */ -qemu_log ("%s: destroy domain %d\n" , __FUNCTION__, xen_domid); +qemu_log ("%s: destroy domain %d\n" , __func__, xen_domid);xc_domain_destroy (xen_xc, xen_domid);_exit (0 ); }
hw/xenpv/xen_machine_pv.c +1 -1
@@ -36,7 +36,7 @@ static void xen_init_pv(MachineState *machine)/* Initialize backend core & drivers */ if (xen_be_init () !=0 ) { -fprintf (stderr,"%s: xen backend core setup failed\n" , __FUNCTION__); +fprintf (stderr,"%s: xen backend core setup failed\n" , __func__);exit (1 ); }
include/hw/arm/omap.h +5 -5
@@ -960,10 +960,10 @@ void omap_mpu_wakeup(void *opaque, int irq, int req);# define OMAP_BAD_REG (paddr) \ fprintf(stderr, "%s: Bad register " OMAP_FMT_plx "\n", \ - __FUNCTION__, paddr) + __func__, paddr)# define OMAP_RO_REG (paddr) \ fprintf(stderr, "%s: Read-only register " OMAP_FMT_plx "\n", \ - __FUNCTION__, paddr) + __func__, paddr)/* OMAP-specific Linux bootloader tags for the ATAG_BOARD area (Board-specifc tags are not here) */
@@ -998,13 +998,13 @@ enum {# ifdef TCMI_VERBOSE # define OMAP_8B_REG (paddr) \ fprintf(stderr, "%s: 8-bit register " OMAP_FMT_plx "\n", \ - __FUNCTION__, paddr) + __func__, paddr)# define OMAP_16B_REG (paddr) \ fprintf(stderr, "%s: 16-bit register " OMAP_FMT_plx "\n", \ - __FUNCTION__, paddr) + __func__, paddr)# define OMAP_32B_REG (paddr) \ fprintf(stderr, "%s: 32-bit register " OMAP_FMT_plx "\n", \ - __FUNCTION__, paddr) + __func__, paddr)# else # define OMAP_8B_REG (paddr)# define OMAP_16B_REG (paddr)
include/hw/arm/sharpsl.h +1 -1
@@ -7,7 +7,7 @@#define QEMU_SHARPSL_H #define zaurus_printf (format, ...) \ - fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__) + fprintf(stderr, "%s: " format, __func__, ##__VA_ARGS__)/* zaurus.c */
memory_mapping.c +1 -1
@@ -256,7 +256,7 @@ static void guest_phys_blocks_region_add(MemoryListener *listener,#ifdef DEBUG_GUEST_PHYS_REGION_ADD fprintf (stderr,"%s: target_start=" TARGET_FMT_plx" target_end=" - TARGET_FMT_plx": %s (count: %u)\n" , __FUNCTION__, target_start, + TARGET_FMT_plx": %s (count: %u)\n" , __func__, target_start, target_end, predecessor ?"joined" :"added" , g->list->num);#endif }
migration/block.c +2 -2
@@ -621,7 +621,7 @@ static int flush_blks(QEMUFile *f)int ret =0 ;DPRINTF ("%s Enter submitted %d read_done %d transferred %d\n" , - __FUNCTION__, block_mig_state.submitted, block_mig_state.read_done, + __func__, block_mig_state.submitted, block_mig_state.read_done, block_mig_state.transferred);blk_mig_lock ();
@@ -648,7 +648,7 @@ static int flush_blks(QEMUFile *f) }blk_mig_unlock (); -DPRINTF ("%s Exit submitted %d read_done %d transferred %d\n" , __FUNCTION__, +DPRINTF ("%s Exit submitted %d read_done %d transferred %d\n" , __func__, block_mig_state.submitted, block_mig_state.read_done, block_mig_state.transferred);return ret;
ui/cursor.c +3 -3
@@ -19,11 +19,11 @@ static QEMUCursor *cursor_parse_xpm(const char *xpm[])if (sscanf (xpm[line],"%u %u %u %u" , &width, &height, &colors, &chars) !=4 ) {fprintf (stderr,"%s: header parse error: \"%s\"\n" , - __FUNCTION__, xpm[line]); + __func__, xpm[line]);return NULL ; }if (chars !=1 ) { -fprintf (stderr,"%s: chars != 1 not supported\n" , __FUNCTION__); +fprintf (stderr,"%s: chars != 1 not supported\n" , __func__);return NULL ; } line++;
@@ -41,7 +41,7 @@ static QEMUCursor *cursor_parse_xpm(const char *xpm[]) } }fprintf (stderr,"%s: color parse error: \"%s\"\n" , - __FUNCTION__, xpm[line]); + __func__, xpm[line]);return NULL ; }
ui/spice-display.c +2 -2
@@ -630,13 +630,13 @@ static int interface_req_cursor_notification(QXLInstance *sin)static void interface_notify_update (QXLInstance *sin,uint32_t update_id) { -fprintf (stderr,"%s: abort()\n" , __FUNCTION__); +fprintf (stderr,"%s: abort()\n" , __func__);abort (); }static int interface_flush_resources (QXLInstance *sin) { -fprintf (stderr,"%s: abort()\n" , __FUNCTION__); +fprintf (stderr,"%s: abort()\n" , __func__);abort ();return 0 ; }
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 5/8 util: Replace fprintf(stderr, "*\n" with error_report()
In reply to Alistair FrancisReplace 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}' \
{} +---
util/aio-posix.c | 5 +++-- util/coroutine-sigaltstack.c | 2 +- util/error.c | 2 +- util/main-loop.c | 2 +- util/mmap-alloc.c | 3 ++- util/module.c | 6 +++--- util/osdep.c | 4 ++-- util/oslib-posix.c | 3 ++- util/oslib-win32.c | 3 ++- util/qemu-coroutine.c | 5 +++-- util/qemu-progress.c | 3 ++- util/qemu-thread-posix.c | 5 +++-- util/qemu-thread-win32.c | 5 +++-- util/qemu-timer-common.c | 3 ++- util/qht.c | 2 +- 15 files changed, 31 insertions(+), 22 deletions(-)
util/aio-posix.c +3 -2
@@ -15,6 +15,7 @@#include "qemu/osdep.h" #include "qemu-common.h" +#include "qemu/error-report.h" #include "block/block.h" #include "qemu/rcu_queue.h" #include "qemu/sockets.h"
@@ -696,8 +697,8 @@ void aio_context_setup(AioContext *ctx) {/* TODO remove this in final patch submission */ if (getenv ("QEMU_AIO_POLL_MAX_NS" )) { -fprintf (stderr,"The QEMU_AIO_POLL_MAX_NS environment variable has " -"been replaced with -object iothread,poll-max-ns=NUM\n" ); +error_report ("The QEMU_AIO_POLL_MAX_NS environment variable has " +"been replaced with -object iothread,poll-max-ns=NUM" );exit (1 ); }
util/coroutine-sigaltstack.c +1 -1
@@ -80,7 +80,7 @@ static void __attribute__((constructor)) coroutine_init(void) ret =pthread_key_create (&thread_state_key, qemu_coroutine_thread_cleanup);if (ret !=0 ) { -fprintf (stderr,"unable to create leader key: %s\n" ,strerror (errno)); +error_report ("unable to create leader key: %s" ,strerror (errno));abort (); } }
util/error.c +1 -1
@@ -32,7 +32,7 @@ Error *error_fatal;static void error_handle_fatal (Error **errp,Error *err) {if (errp == &error_abort) { -fprintf (stderr,"Unexpected error in %s() at %s:%d:\n" , +error_report ("Unexpected error in %s() at %s:%d:" , err->func, err->src, err->line);error_report_err (err);abort ();
util/main-loop.c +1 -1
@@ -95,7 +95,7 @@ static int qemu_signal_init(void)sigdelset (&set,SIG_IPI ); sigfd =qemu_signalfd (&set);if (sigfd ==-1 ) { -fprintf (stderr,"failed to create signalfd\n" ); +error_report ("failed to create signalfd" );return -errno; }
util/mmap-alloc.c +2 -1
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu/mmap-alloc.h" #include "qemu/host-utils.h"
@@ -51,7 +52,7 @@ size_t qemu_mempath_getpagesize(const char *mem_path) }while (ret !=0 && errno ==EINTR );if (ret !=0 ) { -fprintf (stderr,"Couldn't statfs() memory path: %s\n" , +error_report ("Couldn't statfs() memory path: %s" ,strerror (errno));exit (1 ); }
util/module.c +3 -3
@@ -124,13 +124,13 @@ static int module_load_file(const char *fname) g_module =g_module_open (fname,G_MODULE_BIND_LAZY |G_MODULE_BIND_LOCAL );if (!g_module) { -fprintf (stderr,"Failed to open module: %s\n" , +error_report ("Failed to open module: %s" ,g_module_error ()); ret = -EINVAL ; goto out; }if (!g_module_symbol (g_module,DSO_STAMP_FUN_STR , (gpointer *)&sym)) { -fprintf (stderr,"Failed to initialize module: %s\n" , +error_report ("Failed to initialize module: %s" , fname);/* Print some info if this is a QEMU module (but from different build), * this will make debugging user problems easier. */
@@ -169,7 +169,7 @@ void module_load_one(const char *prefix, const char *lib_name)static GHashTable *loaded_modules;if (!g_module_supported ()) { -fprintf (stderr,"Module is not supported by system.\n" ); +error_report ("Module is not supported by system." );return ; }
util/osdep.c +2 -2
@@ -425,7 +425,7 @@ void fips_set_state(bool requested)#endif /* __linux__ */ #ifdef _FIPS_DEBUG -fprintf (stderr,"FIPS mode %s (requested %s)\n" , +error_report ("FIPS mode %s (requested %s)" , (fips_enabled ?"enabled" :"disabled" ), (requested ?"enabled" :"disabled" ));#endif
@@ -452,7 +452,7 @@ int socket_init(void) ret =WSAStartup (MAKEWORD (2 ,2 ), &Data);if (ret !=0 ) { err =WSAGetLastError (); -fprintf (stderr,"WSAStartup: %d\n" , err); +error_report ("WSAStartup: %d" , err);return -1 ; }atexit (socket_cleanup);
util/oslib-posix.c +2 -1
@@ -34,6 +34,7 @@#include "sysemu/sysemu.h" #include "trace.h" #include "qapi/error.h" +#include "qemu/error-report.h" #include "qemu/sockets.h" #include <libgen.h> #include <sys/signal.h>
@@ -87,7 +88,7 @@ int qemu_daemon(int nochdir, int noclose)void *qemu_oom_check (void *ptr) {if (ptr ==NULL ) { -fprintf (stderr,"Failed to allocate memory: %s\n" ,strerror (errno)); +error_report ("Failed to allocate memory: %s" ,strerror (errno));abort (); }return ptr;
util/oslib-win32.c +2 -1
@@ -30,6 +30,7 @@* see the license comment there. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include <windows.h> #include "qapi/error.h" #include "sysemu/sysemu.h"
@@ -44,7 +45,7 @@void *qemu_oom_check (void *ptr) {if (ptr ==NULL ) { -fprintf (stderr,"Failed to allocate memory: %lu\n" ,GetLastError ()); +error_report ("Failed to allocate memory: %lu" ,GetLastError ());abort (); }return ptr;
util/qemu-coroutine.c +3 -2
@@ -13,6 +13,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "trace.h" #include "qemu-common.h" #include "qemu/thread.h"
@@ -110,7 +111,7 @@ void qemu_aio_coroutine_enter(AioContext *ctx, Coroutine *co)trace_qemu_aio_coroutine_enter (ctx, self, co, co->entry_arg);if (co->caller) { -fprintf (stderr,"Co-routine re-entered recursively\n" ); +error_report ("Co-routine re-entered recursively" );abort (); }
@@ -164,7 +165,7 @@ void coroutine_fn qemu_coroutine_yield(void)trace_qemu_coroutine_yield (self, to);if (!to) { -fprintf (stderr,"Co-routine is yielding to no one\n" ); +error_report ("Co-routine is yielding to no one" );abort (); }
util/qemu-progress.c +2 -1
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" struct progress_state {
@@ -68,7 +69,7 @@ static void sigusr_print(int signal)static void progress_dummy_print (void ) {if (print_pending) { -fprintf (stderr," (%3.2f/100%%)\n" , state.current); +error_report (" (%3.2f/100%%)" , state.current); print_pending =0 ; } }
util/qemu-thread-posix.c +3 -2
@@ -11,6 +11,7 @@* */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu/thread.h" #include "qemu/atomic.h" #include "qemu/notify.h"
@@ -25,14 +26,14 @@ void qemu_thread_naming(bool enable)#ifndef CONFIG_THREAD_SETNAME_BYTHREAD /* This is a debugging option, not fatal */ if (enable) { -fprintf (stderr,"qemu: thread naming not supported on this host\n" ); +error_report ("qemu: thread naming not supported on this host" ); }#endif }static void error_exit (int err,const char *msg) { -fprintf (stderr,"qemu: %s: %s\n" , msg,strerror (err)); +error_report ("qemu: %s: %s" , msg,strerror (err));abort (); }
util/qemu-thread-win32.c +3 -2
@@ -16,6 +16,7 @@#endif #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "qemu/thread.h" #include "qemu/notify.h"
@@ -29,7 +30,7 @@ void qemu_thread_naming(bool enable)/* But note we don't actually name them on Windows yet */ name_threads = enable; -fprintf (stderr,"qemu: thread naming not supported on this host\n" ); +error_report ("qemu: thread naming not supported on this host" ); }static void error_exit (int err,const char *msg)
@@ -38,7 +39,7 @@ static void error_exit(int err, const char *msg)FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM |FORMAT_MESSAGE_ALLOCATE_BUFFER ,NULL , err,0 , (LPTSTR )&pstr,2 ,NULL ); -fprintf (stderr,"qemu: %s: %s\n" , msg, pstr); +error_report ("qemu: %s: %s" , msg, pstr);LocalFree (pstr);abort (); }
util/qemu-timer-common.c +2 -1
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu/timer.h" /***********************************************************/
@@ -37,7 +38,7 @@ static void __attribute__((constructor)) init_get_clock(void)int ret; ret =QueryPerformanceFrequency (&freq);if (ret ==0 ) { -fprintf (stderr,"Could not calibrate ticks\n" ); +error_report ("Could not calibrate ticks" );exit (1 ); } clock_freq = freq.QuadPart;
util/qht.c +1 -1
@@ -154,7 +154,7 @@ static void qht_bucket_debug__locked(struct qht_bucket *b)continue ; }if (seen_empty) { -fprintf (stderr,"%s: b: %p, pos: %i, hash: 0x%x, p: %p\n" , +error_report ("%s: b: %p, pos: %i, hash: 0x%x, p: %p" , __func__, b, i, b->hashes[i], b->pointers[i]); corrupt = true; }
Signature · 1 line
2.11.0
PATCH 7/8 tcg: Replace fprintf(stderr, "*\n" with error_report()
In reply to Alistair FrancisReplace 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}' \
{} +---
cpus.c | 8 ++++---- exec.c | 14 +++++++------- tcg/optimize.c | 8 ++++---- tcg/tcg.c | 2 +- tcg/tcg.h | 3 ++- tcg/tci.c | 2 +- tcg/tci/tcg-target.inc.c | 4 ++-- vl.c | 2 +- 8 files changed, 22 insertions(+), 21 deletions(-)
cpus.c +4 -4
@@ -258,7 +258,7 @@ int64_t cpu_get_icount_raw(void)if (cpu && cpu->running) {if (!cpu->can_do_io) { -fprintf (stderr,"Bad icount read\n" ); +error_report ("Bad icount read" );exit (1 ); }/* Take into account what has run */
@@ -1113,7 +1113,7 @@ static void *qemu_kvm_cpu_thread_fn(void *arg) r =kvm_init_vcpu (cpu);if (r <0 ) { -fprintf (stderr,"kvm_init_vcpu failed: %s\n" ,strerror (-r)); +error_report ("kvm_init_vcpu failed: %s" ,strerror (-r));exit (1 ); }
@@ -1143,7 +1143,7 @@ static void *qemu_kvm_cpu_thread_fn(void *arg)static void *qemu_dummy_cpu_thread_fn (void *arg) {#ifdef _WIN32 -fprintf (stderr,"qtest is not supported under Windows\n" ); +error_report ("qtest is not supported under Windows" );exit (1 );#else CPUState *cpu = arg;
@@ -1525,7 +1525,7 @@ static void qemu_cpu_kick_thread(CPUState *cpu)#else /* _WIN32 */ if (!qemu_cpu_is_self (cpu)) {if (!QueueUserAPC (dummy_apc_func, cpu->hThread,0 )) { -fprintf (stderr,"%s: QueueUserAPC failed with error %lu\n" , +error_report ("%s: QueueUserAPC failed with error %lu" , __func__,GetLastError ());exit (1 ); }
exec.c +7 -7
@@ -1045,7 +1045,7 @@ static RAMBlock *qemu_get_ram_block(ram_addr_t addr) } } -fprintf (stderr,"Bad ram offset %" PRIx64"\n" , (uint64_t )addr); +error_report ("Bad ram offset %" PRIx64"" , (uint64_t )addr);abort (); found:
@@ -1658,7 +1658,7 @@ static ram_addr_t find_ram_offset(ram_addr_t size) }if (offset ==RAM_ADDR_MAX ) { -fprintf (stderr,"Failed to find gap of requested size: %" PRIu64"\n" , +error_report ("Failed to find gap of requested size: %" PRIu64"" , (uint64_t )size);abort (); }
@@ -1688,8 +1688,8 @@ static void qemu_ram_setup_dump(void *addr, ram_addr_t size) ret =qemu_madvise (addr, size,QEMU_MADV_DONTDUMP );if (ret) {perror ("qemu_madvise" ); -fprintf (stderr,"madvise doesn't support MADV_DONTDUMP, " -"but dump_guest_core=off specified\n" ); +error_report ("madvise doesn't support MADV_DONTDUMP, " +"but dump_guest_core=off specified" ); } } }
@@ -1725,7 +1725,7 @@ void qemu_ram_set_idstr(RAMBlock *new_block, const char *name, DeviceState *dev)RAMBLOCK_FOREACH (block) {if (block != new_block && !strcmp (block->idstr, new_block->idstr)) { -fprintf (stderr,"RAMBlock \"%s\" already registered, abort!\n" , +error_report ("RAMBlock \"%s\" already registered, abort!" , new_block->idstr);abort (); }
@@ -2153,8 +2153,8 @@ void qemu_ram_remap(ram_addr_t addr, ram_addr_t length) flags, -1, 0); }if (area != vaddr) { -fprintf (stderr,"Could not remap addr: " -RAM_ADDR_FMT "@" RAM_ADDR_FMT "\n" , +error_report ("Could not remap addr: " +RAM_ADDR_FMT "@" RAM_ADDR_FMT "" , length, addr);exit (1 ); }
tcg/optimize.c +4 -4
@@ -96,8 +96,8 @@ static TCGOpcode op_to_mov(TCGOpcode op)case 64 :return INDEX_op_mov_i64;default : -fprintf (stderr,"op_to_mov: unexpected return value of " -"function op_bits.\n" ); +error_report ("op_to_mov: unexpected return value of " +"function op_bits." );tcg_abort (); } }
@@ -110,8 +110,8 @@ static TCGOpcode op_to_movi(TCGOpcode op)case 64 :return INDEX_op_movi_i64;default : -fprintf (stderr,"op_to_movi: unexpected return value of " -"function op_bits.\n" ); +error_report ("op_to_movi: unexpected return value of " +"function op_bits." );tcg_abort (); } }
tcg/tcg.c +1 -1
@@ -673,7 +673,7 @@ static void tcg_temp_free_internal(int idx)#if defined(CONFIG_DEBUG_TCG ) s->temps_in_use--;if (s->temps_in_use <0 ) { -fprintf (stderr,"More temporaries freed than allocated!\n" ); +error_report ("More temporaries freed than allocated!" ); }#endif
tcg/tcg.h +2 -1
@@ -29,6 +29,7 @@#include "cpu.h" #include "exec/tb-context.h" #include "qemu/bitops.h" +#include "qemu/error-report.h" #include "tcg-mo.h" #include "tcg-target.h"
@@ -897,7 +898,7 @@ typedef struct TCGTargetOpDef {#define tcg_abort () \ do {\ - fprintf(stderr, "%s:%d: tcg fatal error\n", __FILE__, __LINE__);\ + error_report("%s:%d: tcg fatal error", __FILE__, __LINE__);\ abort();\ } while (0)
tcg/tci.c +1 -1
@@ -35,7 +35,7 @@/* Marker for missing code. */ #define TODO () \ do { \ - fprintf(stderr, "TODO %s:%u: %s()\n", \ + error_report("TODO %s:%u: %s()", \ __FILE__, __LINE__, __func__); \ tcg_abort(); \ } while (0)
tcg/tci/tcg-target.inc.c +2 -2
@@ -29,7 +29,7 @@/* Marker for missing code. */ #define TODO () \ do { \ - fprintf(stderr, "TODO %s:%u: %s()\n", \ + error_report("TODO %s:%u: %s()", \ __FILE__, __LINE__, __func__); \ tcg_abort(); \ } while (0)
@@ -403,7 +403,7 @@ static const char *target_parse_constraint(TCGArgConstraint *ct,void tci_disas (uint8_t opc) {const TCGOpDef *def = &tcg_op_defs[opc]; -fprintf (stderr,"TCG %s %u, %u, %u\n" , +error_report ("TCG %s %u, %u, %u" , def->name, def->nb_oargs, def->nb_iargs, def->nb_cargs); }#endif
vl.c +1 -1
@@ -2232,7 +2232,7 @@ static DisplayType select_display(const char *p) display_opengl =1 ; display =DT_EGL ;#else -fprintf (stderr,"egl support is disabled\n" ); +error_report ("egl support is disabled" );exit (1 );#endif }else if (strstart (p,"curses" , &opts)) {
Signature · 1 line
2.11.0
PATCH 4/8 block: Replace fprintf(stderr, "*\n" with error_report()
In reply to Alistair FrancisReplace 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}' \
{} +---
block/file-posix.c | 6 +-- block/file-win32.c | 3 +- block/linux-aio.c | 5 ++- block/parallels.c | 7 ++-- block/qcow2-cluster.c | 2 +- block/qcow2-refcount.c | 95 ++++++++++++++++++++++++------------------------ block/qcow2.c | 8 ++-- block/quorum.c | 5 ++- block/ssh.c | 4 +- block/vdi.c | 14 ++++--- block/vpc.c | 5 ++- block/vvfat.c | 99 ++++++++++++++++++++++++++++---------------------- 12 files changed, 136 insertions(+), 117 deletions(-)
block/file-posix.c +3 -3
@@ -198,7 +198,7 @@ static int raw_normalize_devicepath(const char **filename) fname = *filename; dp =strrchr (fname,'/' );if (lstat (fname, &sb) <0 ) { -fprintf (stderr,"%s: stat failed: %s\n" , +error_report ("%s: stat failed: %s" , fname,strerror (errno));return -errno; }
@@ -215,7 +215,7 @@ static int raw_normalize_devicepath(const char **filename) }fprintf (stderr,"%s is a block device" , fname); *filename = namebuf; -fprintf (stderr,", using %s\n" , *filename); +error_report (", using %s" , *filename);return 0 ; }
@@ -1499,7 +1499,7 @@ static int aio_worker(void *arg) ret =handle_aiocb_write_zeroes (aiocb);break ;default : -fprintf (stderr,"invalid aio request (0x%x)\n" , aiocb->aio_type); +error_report ("invalid aio request (0x%x)" , aiocb->aio_type); ret = -EINVAL ;break ; }
block/file-win32.c +2 -1
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu/cutils.h" #include "block/block_int.h"
@@ -131,7 +132,7 @@ static int aio_worker(void *arg) }break ;default : -fprintf (stderr,"invalid aio request (0x%x)\n" , aiocb->aio_type); +error_report ("invalid aio request (0x%x)" , aiocb->aio_type); ret = -EINVAL ;break ; }
block/linux-aio.c +3 -2
@@ -8,6 +8,7 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "block/aio.h" #include "qemu/queue.h"
@@ -389,7 +390,7 @@ static int laio_do_submit(int fd, struct qemu_laiocb *laiocb, off_t offset,break ;/* Currently Linux kernel does not support other operations */ default : -fprintf (stderr,"%s: invalid AIO request type 0x%x.\n" , +error_report ("%s: invalid AIO request type 0x%x." , __func__, type);return -EIO ; }
@@ -499,7 +500,7 @@ void laio_cleanup(LinuxAioState *s)event_notifier_cleanup (&s->e);if (io_destroy (s->ctx) !=0 ) { -fprintf (stderr,"%s: destroy AIO context %p failed\n" , +error_report ("%s: destroy AIO context %p failed" , __func__, &s->ctx); }g_free (s);
block/parallels.c +4 -3
@@ -28,6 +28,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h"
@@ -397,7 +398,7 @@ static int parallels_check(BlockDriverState *bs, BdrvCheckResult *res, }if (s->header_unclean) { -fprintf (stderr,"%s image was not closed correctly\n" , +error_report ("%s image was not closed correctly" , fix &BDRV_FIX_ERRORS ?"Repairing" :"ERROR" ); res->corruptions++;if (fix &BDRV_FIX_ERRORS ) {
@@ -421,7 +422,7 @@ static int parallels_check(BlockDriverState *bs, BdrvCheckResult *res,/* cluster outside the image */ if (off > size) { -fprintf (stderr,"%s cluster %u is outside image\n" , +error_report ("%s cluster %u is outside image" , fix &BDRV_FIX_ERRORS ?"Repairing" :"ERROR" , i); res->corruptions++;if (fix &BDRV_FIX_ERRORS ) {
@@ -456,7 +457,7 @@ static int parallels_check(BlockDriverState *bs, BdrvCheckResult *res,if (size > res->image_end_offset) {int64_t count; count =DIV_ROUND_UP (size - res->image_end_offset, cluster_size); -fprintf (stderr,"%s space leaked at the end of the image %" PRId64"\n" , +error_report ("%s space leaked at the end of the image %" PRId64"" , fix &BDRV_FIX_LEAKS ?"Repairing" :"ERROR" , size - res->image_end_offset); res->leaks += count;
block/qcow2-cluster.c +1 -1
@@ -71,7 +71,7 @@ int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size, }#ifdef DEBUG_ALLOC2 -fprintf (stderr,"grow l1_table from %d to %" PRId64"\n" , +error_report ("grow l1_table from %d to %" PRId64"" , s->l1_size, new_l1_size);#endif
block/qcow2-refcount.c +48 -47
295 lines not on this page · raw message
block/qcow2.c +4 -4
@@ -4162,11 +4162,11 @@ void qcow2_signal_corruption(BlockDriverState *bs, bool fatal, int64_t offset,va_end (ap);if (fatal) { -fprintf (stderr,"qcow2: Marking image as corrupt: %s; further " -"corruption events will be suppressed\n" , message); +error_report ("qcow2: Marking image as corrupt: %s; further " +"corruption events will be suppressed" , message); }else { -fprintf (stderr,"qcow2: Image is corrupt: %s; further non-fatal " -"corruption events will be suppressed\n" , message); +error_report ("qcow2: Image is corrupt: %s; further non-fatal " +"corruption events will be suppressed" , message); } node_name =bdrv_get_node_name (bs);
block/quorum.c +3 -2
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu/cutils.h" #include "block/block_int.h" #include "qapi/qmp/qbool.h"
@@ -927,8 +928,8 @@ static int quorum_open(BlockDriverState *bs, QDict *options, int flags, s->num_children == 2 && s->threshold == 2) { s->is_blkverify = true; } else if (qemu_opt_get_bool(opts, QUORUM_OPT_BLKVERIFY, false)) { -fprintf (stderr,"blkverify mode is set by setting blkverify=on " -"and using two files with vote_threshold=2\n" ); +error_report ("blkverify mode is set by setting blkverify=on " +"and using two files with vote_threshold=2" ); } s->rewrite_corrupted = qemu_opt_get_bool(opts, QUORUM_OPT_REWRITE,
block/ssh.c +2 -2
@@ -53,7 +53,7 @@#define DPRINTF (fmt, ...) \ do { \ if (DEBUG_SSH) { \ - fprintf(stderr, "ssh: %-15s " fmt "\n", \ + error_report("ssh: %-15s " fmt "", \ __func__, ##__VA_ARGS__); \ } \ } while (0)
@@ -1217,7 +1217,7 @@ static void bdrv_ssh_init(void) r =libssh2_init (0 );if (r !=0 ) { -fprintf (stderr,"libssh2 initialization failed, %d\n" , r); +error_report ("libssh2 initialization failed, %d" , r);exit (EXIT_FAILURE ); }
block/vdi.c +8 -6
@@ -50,6 +50,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "block/block_int.h" #include "sysemu/block-backend.h"
@@ -289,20 +290,21 @@ static int vdi_check(BlockDriverState *bs, BdrvCheckResult *res,if (!VDI_IS_ALLOCATED (bmap[bmap_entry])) { bmap[bmap_entry] = bmap_entry; }else { -fprintf (stderr,"ERROR: block index %" PRIu32 -" also used by %" PRIu32"\n" , bmap[bmap_entry], bmap_entry); +error_report ("block index %" PRIu32 +" also used by %" PRIu32"" , + bmap[bmap_entry], bmap_entry); res->corruptions++; } }else { -fprintf (stderr,"ERROR: block index %" PRIu32 -" too large, is %" PRIu32"\n" , block, bmap_entry); +error_report ("block index %" PRIu32 +" too large, is %" PRIu32"" , block, bmap_entry); res->corruptions++; } } }if (blocks_allocated != s->header.blocks_allocated) { -fprintf (stderr,"ERROR: allocated blocks mismatch, is %" PRIu32 -", should be %" PRIu32"\n" , +error_report ("allocated blocks mismatch, is %" PRIu32 +", should be %" PRIu32"" , blocks_allocated, s->header.blocks_allocated); res->corruptions++; }
block/vpc.c +3 -2
@@ -23,6 +23,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "block/block_int.h"
@@ -278,8 +279,8 @@ static int vpc_open(BlockDriverState *bs, QDict *options, int flags, checksum =be32_to_cpu (footer->checksum); footer->checksum =0 ;if (vpc_checksum (s->footer_buf,HEADER_SIZE ) != checksum) -fprintf (stderr,"block-vpc: The header checksum of '%s' is " -"incorrect.\n" , bs->filename); +error_report ("block-vpc: The header checksum of '%s' is " +"incorrect." , bs->filename);/* Write 'checksum' back to footer, or else will leave it with zero. */ footer->checksum =cpu_to_be32 (checksum);
block/vvfat.c +55 -44
314 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH 3/8 hw: Replace fprintf(stderr, "*\n" with error_report()
In reply to Alistair FrancisReplace 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.
---
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(-)
hw/arm/armv7m.c +1 -1
@@ -278,7 +278,7 @@ void armv7m_load_kernel(ARMCPU *cpu, const char *kernel_filename, int mem_size)#endif if (!kernel_filename && !qtest_enabled ()) { -fprintf (stderr,"Guest image must be specified (using -kernel)\n" ); +error_report ("Guest image must be specified (using -kernel)" );exit (1 ); }
hw/arm/boot.c +17 -17
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include <libfdt.h> #include "hw/hw.h"
@@ -418,13 +419,13 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo,char *filename; filename =qemu_find_file (QEMU_FILE_TYPE_BIOS , binfo->dtb_filename);if (!filename) { -fprintf (stderr,"Couldn't open dtb file %s\n" , binfo->dtb_filename); +error_report ("Couldn't open dtb file %s" , binfo->dtb_filename); goto fail; } fdt =load_device_tree (filename, &size);if (!fdt) { -fprintf (stderr,"Couldn't open dtb file %s\n" , filename); +error_report ("Couldn't open dtb file %s" , filename);g_free (filename); goto fail; }
@@ -432,7 +433,7 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo, }else { fdt = binfo->get_dtb (binfo, &size);if (!fdt) { -fprintf (stderr,"Board was unable to create a dtb blob\n" ); +error_report ("Board was unable to create a dtb blob" ); goto fail; } }
@@ -451,7 +452,7 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo, scells =qemu_fdt_getprop_cell (fdt,"/" ,"#size-cells" ,NULL , &error_fatal);if (acells ==0 || scells ==0 ) { -fprintf (stderr,"dtb file invalid (#address-cells or #size-cells 0)\n" ); +error_report ("dtb file invalid (#address-cells or #size-cells 0)" ); goto fail; }
@@ -459,8 +460,7 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo,/* This is user error so deserves a friendlier error message * than the failure of setprop_sized_cells would provide */ -fprintf (stderr,"qemu: dtb file not compatible with " -"RAM size > 4GB\n" ); +error_report ("qemu: dtb file not compatible with RAM size > 4GB" ); goto fail; }
@@ -480,7 +480,7 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo, acells, mem_base, scells, mem_len);if (rc <0 ) { -fprintf (stderr,"couldn't set %s/reg for node %d\n" , nodename, +error_report ("couldn't set %s/reg for node %d" , nodename, i); goto fail; }
@@ -505,7 +505,7 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo, acells, binfo->loader_start, scells, binfo->ram_size);if (rc <0 ) { -fprintf (stderr,"couldn't set /memory/reg\n" ); +error_report ("couldn't set /memory/reg" ); goto fail; } }
@@ -519,7 +519,7 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo, rc =qemu_fdt_setprop_string (fdt,"/chosen" ,"bootargs" , binfo->kernel_cmdline);if (rc <0 ) { -fprintf (stderr,"couldn't set /chosen/bootargs\n" ); +error_report ("couldn't set /chosen/bootargs" ); goto fail; } }
@@ -528,14 +528,14 @@ static int load_dtb(hwaddr addr, const struct arm_boot_info *binfo, rc =qemu_fdt_setprop_cell (fdt,"/chosen" ,"linux,initrd-start" , binfo->initrd_start);if (rc <0 ) { -fprintf (stderr,"couldn't set /chosen/linux,initrd-start\n" ); +error_report ("couldn't set /chosen/linux,initrd-start" ); goto fail; } rc =qemu_fdt_setprop_cell (fdt,"/chosen" ,"linux,initrd-end" , binfo->initrd_start + binfo->initrd_size);if (rc <0 ) { -fprintf (stderr,"couldn't set /chosen/linux,initrd-end\n" ); +error_report ("couldn't set /chosen/linux,initrd-end" ); goto fail; } }
@@ -690,7 +690,7 @@ static void load_image_to_fw_cfg(FWCfgState *fw_cfg, uint16_t size_key,gsize length;if (!g_file_get_contents (image_name, &contents, &length,NULL )) { -fprintf (stderr,"failed to load \"%s\"\n" , image_name); +error_report ("failed to load \"%s\"" , image_name);exit (1 ); } size = length;
@@ -956,7 +956,7 @@ static void arm_load_kernel_notify(Notifier *notifier, void *data) is_linux =1 ; }if (kernel_size <0 ) { -fprintf (stderr,"qemu: could not load kernel '%s'\n" , +error_report ("qemu: could not load kernel '%s'" , info->kernel_filename);exit (1 ); }
@@ -976,7 +976,7 @@ static void arm_load_kernel_notify(Notifier *notifier, void *data) info->initrd_start); }if (initrd_size <0 ) { -fprintf (stderr,"qemu: could not load initrd '%s'\n" , +error_report ("qemu: could not load initrd '%s'" , info->initrd_filename);exit (1 ); }
@@ -1021,9 +1021,9 @@ static void arm_load_kernel_notify(Notifier *notifier, void *data) }else { fixupcontext[FIXUP_ARGPTR ] = info->loader_start +KERNEL_ARGS_ADDR ;if (info->ram_size >= (1ULL <<32 )) { -fprintf (stderr,"qemu: RAM size must be less than 4GB to boot" -" Linux kernel using ATAGS (try passing a device tree" -" using -dtb)\n" ); +error_report ("qemu: RAM size must be less than 4GB to boot" +" Linux kernel using ATAGS (try passing a device tree" +" using -dtb)" );exit (1 ); } }
hw/arm/gumstix.c +7 -6
@@ -35,6 +35,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/arm/pxa.h" #include "net/net.h"
@@ -62,8 +63,8 @@ static void connex_init(MachineState *machine) dinfo =drive_get (IF_PFLASH ,0 ,0 );if (!dinfo && !qtest_enabled ()) { -fprintf (stderr,"A flash image must be given with the " -"'pflash' parameter\n" ); +error_report ("A flash image must be given with the " +"'pflash' parameter" );exit (1 ); }
@@ -76,7 +77,7 @@ static void connex_init(MachineState *machine) dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, sector_len, connex_rom / sector_len, 2, 0, 0, 0, 0, be)) { -fprintf (stderr,"qemu: Error registering flash memory.\n" ); +error_report ("qemu: Error registering flash memory." );exit (1 ); }
@@ -99,8 +100,8 @@ static void verdex_init(MachineState *machine) dinfo =drive_get (IF_PFLASH ,0 ,0 );if (!dinfo && !qtest_enabled ()) { -fprintf (stderr,"A flash image must be given with the " -"'pflash' parameter\n" ); +error_report ("A flash image must be given with the " +"'pflash' parameter" );exit (1 ); }
@@ -113,7 +114,7 @@ static void verdex_init(MachineState *machine) dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, sector_len, verdex_rom / sector_len, 2, 0, 0, 0, 0, be)) { -fprintf (stderr,"qemu: Error registering flash memory.\n" ); +error_report ("qemu: Error registering flash memory." );exit (1 ); }
hw/arm/mainstone.c +4 -3
@@ -12,6 +12,7 @@* GNU GPL, version 2 or (at your option) any later version. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/arm/pxa.h"
@@ -143,8 +144,8 @@ static void mainstone_common_init(MemoryRegion *address_space_mem,if (qtest_enabled ()) {break ; } -fprintf (stderr,"Two flash images must be given with the " -"'pflash' parameter\n" ); +error_report ("Two flash images must be given with the " +"'pflash' parameter" );exit (1 ); }
@@ -154,7 +155,7 @@ static void mainstone_common_init(MemoryRegion *address_space_mem, blk_by_legacy_dinfo(dinfo), sector_len, MAINSTONE_FLASH / sector_len, 4, 0, 0, 0, 0, be)) { -fprintf (stderr,"qemu: Error registering flash memory.\n" ); +error_report ("qemu: Error registering flash memory." );exit (1 ); } }
hw/arm/musicpal.c +1 -1
@@ -1626,7 +1626,7 @@ static void musicpal_init(MachineState *machine) flash_size =blk_getlength (blk);if (flash_size !=8 *1024 *1024 && flash_size !=16 *1024 *1024 && flash_size !=32 *1024 *1024 ) { -fprintf (stderr,"Invalid flash image size\n" ); +error_report ("Invalid flash image size" );exit (1 ); }
hw/arm/omap1.c +3 -2
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "cpu.h"
@@ -2313,7 +2314,7 @@ void omap_uwire_attach(struct omap_uwire_s *s, uWireSlave *slave, int chipselect) {if (chipselect <0 || chipselect >3 ) { -fprintf (stderr,"%s: Bad chipselect %i\n" , __func__, chipselect); +error_report ("%s: Bad chipselect %i" , __func__, chipselect);exit (-1 ); }
@@ -3989,7 +3990,7 @@ struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *system_memory, dinfo =drive_get (IF_SD ,0 ,0 );if (!dinfo) { -fprintf (stderr,"qemu: missing SecureDigital device\n" ); +error_report ("qemu: missing SecureDigital device" );exit (1 ); } s->mmc = omap_mmc_init(0xfffb7800, system_memory,
hw/arm/omap2.c +11 -10
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "cpu.h"
@@ -1311,7 +1312,7 @@ static void omap_prcm_apll_update(struct omap_prcm_s *s)/* TODO: update clocks */ if (mode[0 ] ==1 || mode[0 ] ==2 || mode[1 ] ==1 || mode[1 ] ==2 ) -fprintf (stderr,"%s: bad EN_54M_PLL or bad EN_96M_PLL\n" , +error_report ("%s: bad EN_54M_PLL or bad EN_96M_PLL" , __func__); }
@@ -1331,7 +1332,7 @@ static void omap_prcm_dpll_update(struct omap_prcm_s *s) s->dpll_lock =0 ;switch (mode) {case 0 : -fprintf (stderr,"%s: bad EN_DPLL\n" , __func__); +error_report ("%s: bad EN_DPLL" , __func__);break ;case 1 :/* Low-power bypass mode (Default) */ case 2 :/* Fast-relock bypass mode */
@@ -1358,7 +1359,7 @@ static void omap_prcm_dpll_update(struct omap_prcm_s *s)omap_clk_reparent (core, dpll_x2);break ;case 3 : -fprintf (stderr,"%s: bad CORE_CLK_SRC\n" , __func__); +error_report ("%s: bad CORE_CLK_SRC" , __func__);break ; } }
@@ -1627,8 +1628,8 @@ static void omap_prcm_write(void *opaque, hwaddr addr,case 0x500 :/* CM_CLKEN_PLL */ if (value &0xffffff30 ) -fprintf (stderr,"%s: write 0s in CM_CLKEN_PLL for " -"future compatibility\n" , __func__); +error_report ("%s: write 0s in CM_CLKEN_PLL for " +"future compatibility" , __func__);if ((s->clken[9 ] ^ value) &0xcc ) { s->clken[9 ] &= ~0xcc ; s->clken[9 ] |= value &0xcc ;
@@ -1646,8 +1647,8 @@ static void omap_prcm_write(void *opaque, hwaddr addr,break ;case 0x540 :/* CM_CLKSEL1_PLL */ if (value &0xfc4000d7 ) -fprintf (stderr,"%s: write 0s in CM_CLKSEL1_PLL for " -"future compatibility\n" , __func__); +error_report ("%s: write 0s in CM_CLKSEL1_PLL for " +"future compatibility" , __func__);if ((s->clksel[5 ] ^ value) &0x003fff00 ) { s->clksel[5 ] = value &0x03bfff28 ;omap_prcm_dpll_update (s);
@@ -1658,8 +1659,8 @@ static void omap_prcm_write(void *opaque, hwaddr addr,break ;case 0x544 :/* CM_CLKSEL2_PLL */ if (value & ~3 ) -fprintf (stderr,"%s: write 0s in CM_CLKSEL2_PLL[31:2] for " -"future compatibility\n" , __func__); +error_report ("%s: write 0s in CM_CLKSEL2_PLL[31:2] for " +"future compatibility" , __func__);if (s->clksel[6 ] != (value &3 )) { s->clksel[6 ] = value &3 ;omap_prcm_dpll_update (s);
@@ -2486,7 +2487,7 @@ struct omap_mpu_state_s *omap2420_mpu_init(MemoryRegion *sysmem, dinfo =drive_get (IF_SD ,0 ,0 );if (!dinfo) { -fprintf (stderr,"qemu: missing SecureDigital device\n" ); +error_report ("qemu: missing SecureDigital device" );exit (1 ); } s->mmc = omap2_mmc_init(omap_l4tao(s->l4, 9),
hw/arm/omap_sx1.c +3 -3
@@ -158,7 +158,7 @@ static void sx1_init(MachineState *machine, const int version) blk_by_legacy_dinfo(dinfo), sector_size, flash_size / sector_size, 4, 0, 0, 0, 0, be)) { -fprintf (stderr,"qemu: Error registering flash memory %d.\n" , +error_report ("qemu: Error registering flash memory %d." , fl_idx); } fl_idx++;
@@ -182,7 +182,7 @@ static void sx1_init(MachineState *machine, const int version) blk_by_legacy_dinfo(dinfo), sector_size, flash1_size / sector_size, 4, 0, 0, 0, 0, be)) { -fprintf (stderr,"qemu: Error registering flash memory %d.\n" , +error_report ("qemu: Error registering flash memory %d." , fl_idx); } fl_idx++;
@@ -194,7 +194,7 @@ static void sx1_init(MachineState *machine, const int version) }if (!machine->kernel_filename && !fl_idx && !qtest_enabled ()) { -fprintf (stderr,"Kernel or Flash image must be specified\n" ); +error_report ("Kernel or Flash image must be specified" );exit (1 ); }
hw/arm/palm.c +5 -5
@@ -233,8 +233,8 @@ static void palmte_init(MachineState *machine)if (nb_option_roms) { rom_size =get_image_size (option_rom[0 ].name);if (rom_size > flash_size) { -fprintf (stderr,"%s: ROM image too big (%x > %x)\n" , - __func__, rom_size, flash_size); +error_report ("%s: ROM image too big (%x > %x)" , + __func__, rom_size, flash_size); rom_size =0 ; }if (rom_size >0 ) {
@@ -243,13 +243,13 @@ static void palmte_init(MachineState *machine) rom_loaded =1 ; }if (rom_size <0 ) { -fprintf (stderr,"%s: error loading '%s'\n" , - __func__, option_rom[0 ].name); +error_report ("%s: error loading '%s'" , + __func__, option_rom[0 ].name); } }if (!rom_loaded && !kernel_filename && !qtest_enabled ()) { -fprintf (stderr,"Kernel or ROM image must be specified\n" ); +fprintf (stderr,"Kernel or ROM image must be specified" );exit (1 ); }
hw/arm/pxa2xx.c +4 -3
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "cpu.h"
@@ -2060,7 +2061,7 @@ PXA2xxState *pxa270_init(MemoryRegion *address_space, s =g_new0 (PXA2xxState,1 );if (strncmp (cpu_type,"pxa27" ,5 )) { -fprintf (stderr,"Machine requires a PXA27x processor.\n" ); +error_report ("Machine requires a PXA27x processor." );exit (1 ); }
@@ -2093,7 +2094,7 @@ PXA2xxState *pxa270_init(MemoryRegion *address_space, dinfo =drive_get (IF_SD ,0 ,0 );if (!dinfo) { -fprintf (stderr,"qemu: missing SecureDigital device\n" ); +error_report ("qemu: missing SecureDigital device" );exit (1 ); } s->mmc = pxa2xx_mmci_init(address_space, 0x41100000,
@@ -2218,7 +2219,7 @@ PXA2xxState *pxa255_init(MemoryRegion *address_space, unsigned int sdram_size) dinfo =drive_get (IF_SD ,0 ,0 );if (!dinfo) { -fprintf (stderr,"qemu: missing SecureDigital device\n" ); +error_report ("qemu: missing SecureDigital device" );exit (1 ); } s->mmc = pxa2xx_mmci_init(address_space, 0x41100000,
hw/arm/stellaris.c +2 -1
@@ -8,6 +8,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "hw/sysbus.h" #include "hw/ssi/ssi.h"
@@ -559,7 +560,7 @@ static void ssys_write(void *opaque, hwaddr offset,case 0x040 :/* SRCR0 */ case 0x044 :/* SRCR1 */ case 0x048 :/* SRCR2 */ -fprintf (stderr,"Peripheral reset not implemented\n" ); +error_report ("Peripheral reset not implemented" );break ;case 0x054 :/* IMC */ s->int_mask = value &0x7f ;
hw/arm/tosa.c +9 -8
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "hw/hw.h" #include "hw/arm/pxa.h"
@@ -70,19 +71,19 @@ static void tosa_out_switch(void *opaque, int line, int level) {switch (line) {case 0 : -fprintf (stderr,"blue LED %s.\n" , level ?"on" :"off" ); +error_report ("blue LED %s." , level ?"on" :"off" );break ;case 1 : -fprintf (stderr,"green LED %s.\n" , level ?"on" :"off" ); +error_report ("green LED %s." , level ?"on" :"off" );break ;case 2 : -fprintf (stderr,"amber LED %s.\n" , level ?"on" :"off" ); +error_report ("amber LED %s." , level ?"on" :"off" );break ;case 3 : -fprintf (stderr,"wlan LED %s.\n" , level ?"on" :"off" ); +fprintf (stderr,"wlan LED %s." , level ?"on" :"off" );break ;default : -fprintf (stderr,"Uhandled out event: %d = %d\n" , line, level); +fprintf (stderr,"Uhandled out event: %d = %d" , line, level);break ; } }
@@ -133,7 +134,7 @@ static void tosa_gpio_setup(PXA2xxState *cpu,static uint32_t tosa_ssp_tansfer (SSISlave *dev,uint32_t value) { -fprintf (stderr,"TG: %d %02x\n" , value >>5 , value &0x1f ); +error_report ("TG: %d %02x" , value >>5 , value &0x1f );return 0 ; }
@@ -159,13 +160,13 @@ static int tosa_dac_send(I2CSlave *i2c, uint8_t data) s->buf[s->len] = data;if (s->len ++ >2 ) {#ifdef VERBOSE -fprintf (stderr,"%s: message too long (%i bytes)\n" , __func__, s->len); +error_report ("%s: message too long (%i bytes)" , __func__, s->len);#endif return 1 ; }if (s->len ==2 ) { -fprintf (stderr,"dac: channel %d value 0x%02x\n" , +error_report ("dac: channel %d value 0x%02x" , s->buf[0 ], s->buf[1 ]); }
hw/arm/versatilepb.c +1 -1
@@ -364,7 +364,7 @@ static void versatile_init(MachineState *machine, int board_id) VERSATILE_FLASH_SECT_SIZE, VERSATILE_FLASH_SIZE / VERSATILE_FLASH_SECT_SIZE, 4, 0x0089, 0x0018, 0x0000, 0x0, 0)) { -fprintf (stderr,"qemu: Error registering flash memory.\n" ); +error_report ("qemu: Error registering flash memory." ); } versatile_binfo.ram_size = machine->ram_size;
hw/arm/vexpress.c +4 -4
@@ -266,7 +266,7 @@ static void a9_daughterboard_init(const VexpressMachineState *vms,if (ram_size >0x40000000 ) {/* 1GB is the maximum the address space permits */ -fprintf (stderr,"vexpress-a9: cannot model more than 1GB RAM\n" ); +error_report ("vexpress-a9: cannot model more than 1GB RAM" );exit (1 ); }
@@ -355,7 +355,7 @@ static void a15_daughterboard_init(const VexpressMachineState *vms,*/ uint64_t rsz = ram_size;if (rsz > (30ULL *1024 *1024 *1024 )) { -fprintf (stderr,"vexpress-a15: cannot model more than 30GB RAM\n" ); +error_report ("vexpress-a15: cannot model more than 30GB RAM" );exit (1 ); } }
@@ -640,7 +640,7 @@ static void vexpress_common_init(MachineState *machine) pflash0 =ve_pflash_cfi01_register (map[VE_NORFLASH0 ],"vexpress.flash0" , dinfo);if (!pflash0) { -fprintf (stderr,"vexpress: error registering flash 0.\n" ); +error_report ("vexpress: error registering flash 0." );exit (1 ); }
@@ -655,7 +655,7 @@ static void vexpress_common_init(MachineState *machine) dinfo =drive_get_next (IF_PFLASH );if (!ve_pflash_cfi01_register (map[VE_NORFLASH1 ],"vexpress.flash1" , dinfo)) { -fprintf (stderr,"vexpress: error registering flash 1.\n" ); +error_report ("vexpress: error registering flash 1." );exit (1 ); }
hw/arm/z2.c +3 -3
@@ -319,8 +319,8 @@ static void z2_init(MachineState *machine)#endif dinfo =drive_get (IF_PFLASH ,0 ,0 );if (!dinfo && !qtest_enabled ()) { -fprintf (stderr,"Flash image must be given with the " -"'pflash' parameter\n" ); +error_report ("Flash image must be given with the " +"'pflash' parameter" );exit (1 ); }
@@ -329,7 +329,7 @@ static void z2_init(MachineState *machine) dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, sector_len, Z2_FLASH_SIZE / sector_len, 4, 0, 0, 0, 0, be)) { -fprintf (stderr,"qemu: Error registering flash memory.\n" ); +error_report ("qemu: Error registering flash memory." );exit (1 ); }
hw/block/dataplane/virtio-blk.c +3 -3
@@ -178,8 +178,8 @@ int virtio_blk_data_plane_start(VirtIODevice *vdev)/* Set up guest notifier (irq) */ r = k->set_guest_notifiers (qbus->parent, nvqs, true);if (r !=0 ) { -fprintf (stderr,"virtio-blk failed to set guest notifier (%d), " -"ensure -enable-kvm is set\n" , r); +error_report ("virtio-blk failed to set guest notifier (%d), " +"ensure -enable-kvm is set" , r); goto fail_guest_notifiers; }
@@ -187,7 +187,7 @@ int virtio_blk_data_plane_start(VirtIODevice *vdev)for (i =0 ; i < nvqs; i++) { r =virtio_bus_set_host_notifier (VIRTIO_BUS (qbus), i, true);if (r !=0 ) { -fprintf (stderr,"virtio-blk failed to set host notifier (%d)\n" , r); +error_report ("virtio-blk failed to set host notifier (%d)" , r);while (i--) {virtio_bus_set_host_notifier (VIRTIO_BUS (qbus), i, false); }
hw/block/onenand.c +4 -4
@@ -598,7 +598,7 @@ static void onenand_command(OneNANDState *s)default : s->status |=ONEN_ERR_CMD ; s->intstatus |=ONEN_INT ; -fprintf (stderr,"%s: unknown OneNAND command %x\n" , +error_report ("%s: unknown OneNAND command %x" , __func__, s->command); }
@@ -665,7 +665,7 @@ static uint64_t onenand_read(void *opaque, hwaddr addr,return 0x0000 ; } -fprintf (stderr,"%s: unknown OneNAND register %x\n" , +error_report ("%s: unknown OneNAND register %x" , __func__, offset);return 0 ; }
@@ -710,7 +710,7 @@ static void onenand_write(void *opaque, hwaddr addr,break ;default : -fprintf (stderr,"%s: unknown OneNAND boot command %" PRIx64"\n" , +error_report ("%s: unknown OneNAND boot command %" PRIx64"" , __func__, value); }break ;
@@ -761,7 +761,7 @@ static void onenand_write(void *opaque, hwaddr addr,break ;default : -fprintf (stderr,"%s: unknown OneNAND register %x\n" , +error_report ("%s: unknown OneNAND register %x" , __func__, offset); } }
hw/block/tc58128.c +20 -24
72 lines not on this page · raw message
hw/bt/core.c +8 -7
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "sysemu/bt.h" #include "hw/bt.h"
@@ -31,24 +32,24 @@ static void bt_dummy_lmp_mode_change(struct bt_link_s *link)static void bt_dummy_lmp_connection_complete (struct bt_link_s *link) {if (link->slave->reject_reason) -fprintf (stderr,"%s: stray LMP_not_accepted received, fixme\n" , - __func__); +error_report ("%s: stray LMP_not_accepted received, fixme" , + __func__);else -fprintf (stderr,"%s: stray LMP_accepted received, fixme\n" , - __func__); +error_report ("%s: stray LMP_accepted received, fixme" , + __func__);exit (-1 ); }static void bt_dummy_lmp_disconnect_master (struct bt_link_s *link) { -fprintf (stderr,"%s: stray LMP_detach received, fixme\n" , __func__); +fprintf (stderr,"%s: stray LMP_detach received, fixme" , __func__);exit (-1 ); }static void bt_dummy_lmp_acl_resp (struct bt_link_s *link,const uint8_t *data,int start,int len) { -fprintf (stderr,"%s: stray ACL response PDU, fixme\n" , __func__); +error_report ("%s: stray ACL response PDU, fixme" , __func__);exit (-1 ); }
@@ -113,7 +114,7 @@ void bt_device_done(struct bt_device_s *dev)while (*p && *p != dev) p = &(*p)->next;if (*p != dev) { -fprintf (stderr,"%s: bad bt device \"%s\"\n" , __func__, +error_report ("%s: bad bt device \"%s\"" , __func__, dev->lmp_name ?:"(null)" );exit (-1 ); }
hw/bt/hci-csr.c +9 -8
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "chardev/char-serial.h" #include "qemu/timer.h"
@@ -111,14 +112,14 @@ static uint8_t *csrhci_out_packet(struct csrhci_s *s, int len)if (off <FIFO_LEN ) {if (off + len >FIFO_LEN && (s->out_size = off + len) >FIFO_LEN *2 ) { -fprintf (stderr,"%s: can't alloc %i bytes\n" , __func__, len); +error_report ("%s: can't alloc %i bytes" , __func__, len);exit (-1 ); }return s->outfifo + off; }if (s->out_len > s->out_size) { -fprintf (stderr,"%s: can't alloc %i bytes\n" , __func__, len); +error_report ("%s: can't alloc %i bytes" , __func__, len);exit (-1 ); }
@@ -168,8 +169,8 @@ static void csrhci_in_packet_vendor(struct csrhci_s *s, int ocf, s->bd_addr.b[5 ] = data[offset +2 ]; s->hci->bdaddr_set (s->hci, s->bd_addr.b); -fprintf (stderr,"%s: bd_address loaded from firmware: " -"%02x:%02x:%02x:%02x:%02x:%02x\n" , __func__, +error_report ("%s: bd_address loaded from firmware: " +"%02x:%02x:%02x:%02x:%02x:%02x" , __func__, s->bd_addr.b[0 ], s->bd_addr.b[1 ], s->bd_addr.b[2 ], s->bd_addr.b[3 ], s->bd_addr.b[4 ], s->bd_addr.b[5 ]); }
@@ -181,7 +182,7 @@ static void csrhci_in_packet_vendor(struct csrhci_s *s, int ocf,break ;default : -fprintf (stderr,"%s: got a bad CMD packet\n" , __func__); +error_report ("%s: got a bad CMD packet" , __func__);return ; }
@@ -226,7 +227,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)case H4_NEG_PKT :if (s->in_hdr !=sizeof (csrhci_neg_packet) ||memcmp (pkt -1 , csrhci_neg_packet, s->in_hdr)) { -fprintf (stderr,"%s: got a bad NEG packet\n" , __func__); +error_report ("%s: got a bad NEG packet" , __func__);return ; } pkt +=2 ;
@@ -241,7 +242,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)case H4_ALIVE_PKT :if (s->in_hdr !=4 || pkt[1 ] !=0x55 || pkt[2 ] !=0x00 ) { -fprintf (stderr,"%s: got a bad ALIVE packet\n" , __func__); +error_report ("%s: got a bad ALIVE packet" , __func__);return ; }
@@ -254,7 +255,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)default : bad_pkt:/* TODO: error out */ -fprintf (stderr,"%s: got a bad packet\n" , __func__); +error_report ("%s: got a bad packet" , __func__);break ; }
hw/bt/hci.c +15 -15
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "qemu/timer.h"
@@ -457,7 +458,7 @@ static inline uint8_t *bt_hci_event_start(struct bt_hci_s *hci,int mask_byte;if (len >255 ) { -fprintf (stderr,"%s: HCI event params too long (%ib)\n" , +error_report ("%s: HCI event params too long (%ib)" , __func__, len);exit (-1 ); }
@@ -589,7 +590,7 @@ static void bt_hci_inquiry_result(struct bt_hci_s *hci,bt_hci_inquiry_result_with_rssi (hci, slave);return ;default : -fprintf (stderr,"%s: bad inquiry mode %02x\n" , __func__, +error_report ("%s: bad inquiry mode %02x" , __func__, hci->lm.inquiry_mode);exit (-1 ); }
@@ -1971,7 +1972,7 @@ static void bt_submit_hci(struct HCIInfo *info,break ; short_hci: -fprintf (stderr,"%s: HCI packet too short (%iB)\n" , +error_report ("%s: HCI packet too short (%iB)" , __func__, length);bt_hci_event_status (hci,HCI_INVALID_PARAMETERS );break ;
@@ -1991,7 +1992,7 @@ static inline void bt_hci_lmp_acl_data(struct bt_hci_s *hci, uint16_t handle,/* TODO: avoid memcpy'ing */ if (len +HCI_ACL_HDR_SIZE >sizeof (hci->acl_buf)) { -fprintf (stderr,"%s: can't take ACL packets %i bytes long\n" , +error_report ("%s: can't take ACL packets %i bytes long" , __func__, len);return ; }
@@ -2029,7 +2030,7 @@ static void bt_submit_acl(struct HCIInfo *info,struct bt_link_s *link;if (length <HCI_ACL_HDR_SIZE ) { -fprintf (stderr,"%s: ACL packet too short (%iB)\n" , +error_report ("%s: ACL packet too short (%iB)" , __func__, length);return ; }
@@ -2041,15 +2042,15 @@ static void bt_submit_acl(struct HCIInfo *info, length -=HCI_ACL_HDR_SIZE ;if (bt_hci_handle_bad (hci, handle)) { -fprintf (stderr,"%s: invalid ACL handle %03x\n" , - __func__, handle); +error_report ("%s: invalid ACL handle %03x" , + __func__, handle);/* TODO: signal an error */ return ; } handle &= ~HCI_HANDLE_OFFSET ;if (datalen > length) { -fprintf (stderr,"%s: ACL packet too short (%iB < %iB)\n" , +fprintf (stderr,"%s: ACL packet too short (%iB < %iB)" , __func__, length, datalen);return ; }
@@ -2060,7 +2061,7 @@ static void bt_submit_acl(struct HCIInfo *info,if (!hci->asb_handle) hci->asb_handle = handle;else if (handle != hci->asb_handle) { -fprintf (stderr,"%s: Bad handle %03x in Active Slave Broadcast\n" , +error_report ("%s: Bad handle %03x in Active Slave Broadcast" , __func__, handle);/* TODO: signal an error */ return ;
@@ -2073,7 +2074,7 @@ static void bt_submit_acl(struct HCIInfo *info,if (!hci->psb_handle) hci->psb_handle = handle;else if (handle != hci->psb_handle) { -fprintf (stderr,"%s: Bad handle %03x in Parked Slave Broadcast\n" , +error_report ("%s: Bad handle %03x in Parked Slave Broadcast" , __func__, handle);/* TODO: signal an error */ return ;
@@ -2105,14 +2106,13 @@ static void bt_submit_sco(struct HCIInfo *info, length -=3 ;if (bt_hci_handle_bad (hci, handle)) { -fprintf (stderr,"%s: invalid SCO handle %03x\n" , - __func__, handle); +error_report ("%s: invalid SCO handle %03x" , __func__, handle);return ; }if (datalen > length) { -fprintf (stderr,"%s: SCO packet too short (%iB < %iB)\n" , - __func__, length, datalen); +error_report ("%s: SCO packet too short (%iB < %iB)" , + __func__, length, datalen);return ; }
@@ -2223,7 +2223,7 @@ struct HCIInfo *hci_init(const char *str)return bt_new_hci (vlan); } -fprintf (stderr,"qemu: Unknown bluetooth HCI `%s'.\n" , str); +error_report ("qemu: Unknown bluetooth HCI `%s'." , str);return 0 ; }
hw/bt/hid.c +1 -1
@@ -419,7 +419,7 @@ static void bt_hid_interrupt_sdu(void *opaque, const uint8_t *data, int len)return ; bad: -fprintf (stderr,"%s: bad transaction on Interrupt channel.\n" , +error_report ("%s: bad transaction on Interrupt channel." , __func__); }
hw/bt/l2cap.c +24 -23
119 lines not on this page · raw message
hw/bt/sdp.c +4 -3
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "qemu/host-utils.h" #include "hw/bt.h"
@@ -506,7 +507,7 @@ static void bt_l2cap_sdp_sdu_in(void *opaque, const uint8_t *data, int len)int rsp_len =0 ;if (len <5 ) { -fprintf (stderr,"%s: short SDP PDU (%iB).\n" , __func__, len); +error_report ("%s: short SDP PDU (%iB)." , __func__, len);return ; }
@@ -517,7 +518,7 @@ static void bt_l2cap_sdp_sdu_in(void *opaque, const uint8_t *data, int len) len -=5 ;if (len != plen) { -fprintf (stderr,"%s: wrong SDP PDU length (%iB != %iB).\n" , +error_report ("%s: wrong SDP PDU length (%iB != %iB)." , __func__, plen, len); err =SDP_INVALID_PDU_SIZE ; goto respond;
@@ -544,7 +545,7 @@ static void bt_l2cap_sdp_sdu_in(void *opaque, const uint8_t *data, int len)case SDP_SVC_SEARCH_RSP :case SDP_SVC_SEARCH_ATTR_RSP :default : -fprintf (stderr,"%s: unexpected SDP PDU ID %02x.\n" , +error_report ("%s: unexpected SDP PDU ID %02x." , __func__, pdu_id); err =SDP_INVALID_SYNTAX ;break ;
hw/char/exynos4210_uart.c +3 -3
@@ -296,7 +296,7 @@ static void exynos4210_uart_update_irq(Exynos4210UartState *s)qemu_irq_raise (s->irq);#if DEBUG_IRQ -fprintf (stderr,"UART%d: IRQ has been raised: %08x\n" , +error_report ("UART%d: IRQ has been raised: %08x" , s->channel, s->reg[I_ (UINTP )]);#endif
@@ -388,7 +388,7 @@ static void exynos4210_uart_write(void *opaque, hwaddr offset,* qemu_chr_fe_write and background I/O callbacks */ qemu_chr_fe_write_all (&s->chr, &ch,1 );#if DEBUG_Tx_DATA -fprintf (stderr,"%c" , ch); +error_report ("%c" , ch);#endif s->reg[I_ (UTRSTAT )] |=UTRSTAT_TRANSMITTER_EMPTY | UTRSTAT_Tx_BUFFER_EMPTY;
@@ -400,7 +400,7 @@ static void exynos4210_uart_write(void *opaque, hwaddr offset,case UINTP : s->reg[I_ (UINTP )] &= ~val; s->reg[I_ (UINTSP )] &= ~val; -PRINT_DEBUG ("UART%d: UINTP [%04x] have been cleared: %08x\n" , +PRINT_DEBUG ("UART%d: UINTP [%04x] have been cleared: %08x" , s->channel, offset, s->reg[I_ (UINTP )]);exynos4210_uart_update_irq (s);break ;
hw/char/mcf_uart.c +3 -2
@@ -6,6 +6,7 @@* This code is licensed under the GPL */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/sysbus.h" #include "hw/m68k/mcf.h"
@@ -174,7 +175,7 @@ static void mcf_do_command(mcf_uart_state *s, uint8_t cmd)mcf_uart_do_tx (s);break ;case 3 :/* Reserved. */ -fprintf (stderr,"mcf_uart: Bad TX command\n" ); +error_report ("mcf_uart: Bad TX command" );break ; }
@@ -189,7 +190,7 @@ static void mcf_do_command(mcf_uart_state *s, uint8_t cmd) s->rx_enabled =0 ;break ;case 3 :/* Reserved. */ -fprintf (stderr,"mcf_uart: Bad RX command\n" ); +error_report ("mcf_uart: Bad RX command" );break ; } }
hw/char/sh_serial.c +5 -4
@@ -25,6 +25,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/sh4/sh.h" #include "chardev/char-fe.h"
@@ -190,8 +191,8 @@ static void sh_serial_write(void *opaque, hwaddr offs, } } -fprintf (stderr,"sh_serial: unsupported write to 0x%02" - HWADDR_PRIx"\n" , offs); +error_report ("sh_serial: unsupported write to 0x%02" + HWADDR_PRIx"" , offs);abort (); }
@@ -290,8 +291,8 @@ static uint64_t sh_serial_read(void *opaque, hwaddr offs,#endif if (ret & ~((1 <<16 ) -1 )) { -fprintf (stderr,"sh_serial: unsupported read from 0x%02" - HWADDR_PRIx"\n" , offs); +error_report ("sh_serial: unsupported read from 0x%02" + HWADDR_PRIx"" , offs);abort (); }
hw/core/loader.c +16 -15
@@ -43,6 +43,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "hw/hw.h" #include "disas/disas.h"
@@ -82,7 +83,7 @@ int load_image(const char *filename, uint8_t *addr)return -1 ; size =lseek (fd,0 ,SEEK_END );if (size ==-1 ) { -fprintf (stderr,"file %-20s: get size error: %s\n" , +error_report ("file %-20s: get size error: %s" , filename,strerror (errno));close (fd);return -1 ;
@@ -623,7 +624,7 @@ static int load_uboot_image(const char *filename, hwaddr *ep, hwaddr *loadaddr, goto out;if (hdr->ih_type != image_type) { -fprintf (stderr,"Wrong image type %d, expected %d\n" , hdr->ih_type, +error_report ("Wrong image type %d, expected %d" , hdr->ih_type, image_type); goto out; }
@@ -670,14 +671,14 @@ static int load_uboot_image(const char *filename, hwaddr *ep, hwaddr *loadaddr, address = *loadaddr;break ;default : -fprintf (stderr,"Unsupported u-boot image type %d\n" , hdr->ih_type); +error_report ("Unsupported u-boot image type %d" , hdr->ih_type); goto out; } data =g_malloc (hdr->ih_size);if (read (fd, data, hdr->ih_size) != hdr->ih_size) { -fprintf (stderr,"Error reading file\n" ); +error_report ("Error reading file" ); goto out; }
@@ -693,7 +694,7 @@ static int load_uboot_image(const char *filename, hwaddr *ep, hwaddr *loadaddr, bytes =gunzip (data, max_bytes, compressed_data, hdr->ih_size);g_free (compressed_data);if (bytes <0 ) { -fprintf (stderr,"Unable to decompress gzipped image!\n" ); +error_report ("Unable to decompress gzipped image!" ); goto out; } hdr->ih_size = bytes;
@@ -763,7 +764,7 @@ int load_image_gzipped_buffer(const char *filename, uint64_t max_sz, data =g_malloc (max_sz); bytes =gunzip (data, max_sz, compressed_data, len);if (bytes <0 ) { -fprintf (stderr,"%s: unable to decompress gzipped kernel file\n" , +error_report ("%s: unable to decompress gzipped kernel file" , filename); goto out; }
@@ -893,8 +894,8 @@ int rom_add_file(const char *file, const char *fw_dir,char devpath[100 ];if (as && mr) { -fprintf (stderr,"Specifying an Address Space and Memory Region is " \ -"not valid when loading a rom\n" ); +error_report ("Specifying an Address Space and Memory Region is " \ +"not valid when loading a rom" );/* We haven't allocated anything so we don't need any cleanup */ return -1 ; }
@@ -909,7 +910,7 @@ int rom_add_file(const char *file, const char *fw_dir, fd =open (rom->path,O_RDONLY |O_BINARY );if (fd ==-1 ) { -fprintf (stderr,"Could not open option rom '%s': %s\n" , +error_report ("Could not open option rom '%s': %s" , rom->path,strerror (errno)); goto err; }
@@ -921,7 +922,7 @@ int rom_add_file(const char *file, const char *fw_dir, rom->addr = addr; rom->romsize =lseek (fd,0 ,SEEK_END );if (rom->romsize ==-1 ) { -fprintf (stderr,"rom: file %-20s: get size error: %s\n" , +error_report ("rom: file %-20s: get size error: %s" , rom->name,strerror (errno)); goto err; }
@@ -931,7 +932,7 @@ int rom_add_file(const char *file, const char *fw_dir,lseek (fd,0 ,SEEK_SET ); rc =read (fd, rom->data, rom->datasize);if (rc != rom->datasize) { -fprintf (stderr,"rom: file %-20s: read error: rc=%d (expected %zd)\n" , +error_report ("rom: file %-20s: read error: rc=%d (expected %zd)" , rom->name, rc, rom->datasize); goto err; }
@@ -1105,10 +1106,10 @@ int rom_check_and_register_reset(void)continue ; }if ((addr > rom->addr) && (as == rom->as)) { -fprintf (stderr,"rom: requested regions overlap " -"(rom %s. free=0x" TARGET_FMT_plx -", addr=0x" TARGET_FMT_plx")\n" , - rom->name, addr, rom->addr); +error_report ("rom: requested regions overlap " +"(rom %s. free=0x" TARGET_FMT_plx +", addr=0x" TARGET_FMT_plx")" , + rom->name, addr, rom->addr);return -1 ; } addr = rom->addr;
hw/core/ptimer.c +4 -3
@@ -6,6 +6,7 @@* This code is licensed under the GNU LGPL. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "qemu/timer.h" #include "hw/ptimer.h"
@@ -56,7 +57,7 @@ static void ptimer_reload(ptimer_state *s, int delta_adjust)if (s->period ==0 ) {if (!qtest_enabled ()) { -fprintf (stderr,"Timer with period zero, disabling\n" ); +error_report ("Timer with period zero, disabling" ); }timer_del (s->timer); s->enabled =0 ;
@@ -89,7 +90,7 @@ static void ptimer_reload(ptimer_state *s, int delta_adjust)if (delta ==0 ) {if (!qtest_enabled ()) { -fprintf (stderr,"Timer with delta zero, disabling\n" ); +error_report ("Timer with delta zero, disabling" ); }timer_del (s->timer); s->enabled =0 ;
@@ -263,7 +264,7 @@ void ptimer_run(ptimer_state *s, int oneshot)if (was_disabled && s->period ==0 ) {if (!qtest_enabled ()) { -fprintf (stderr,"Timer with period zero, disabling\n" ); +error_report ("Timer with period zero, disabling" ); }return ; }
hw/cris/axis_dev88.c +2 -1
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "cpu.h"
@@ -349,7 +350,7 @@ void axisdev88_init(MachineState *machine) li.cmdline = kernel_cmdline;cris_load_image (cpu, &li); }else if (!qtest_enabled ()) { -fprintf (stderr,"Kernel image must be specified\n" ); +error_report ("Kernel image must be specified" );exit (1 ); } }
hw/cris/boot.c +3 -2
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "hw/hw.h"
@@ -86,14 +87,14 @@ void cris_load_image(CRISCPU *cpu, struct cris_load_info *li) }if (image_size <0 ) { -fprintf (stderr,"qemu: could not load kernel '%s'\n" , +error_report ("qemu: could not load kernel '%s'" , li->image_filename);exit (1 ); }if (li->cmdline && (kcmdline_len =strlen (li->cmdline))) {if (kcmdline_len >256 ) { -fprintf (stderr,"Too long CRIS kernel cmdline (max 256)\n" ); +error_report ("Too long CRIS kernel cmdline (max 256)" );exit (1 ); }pstrcpy_targphys ("cmdline" ,0x40000000 ,256 , li->cmdline);
hw/display/blizzard.c +10 -10
@@ -474,7 +474,7 @@ static uint16_t blizzard_reg_read(void *opaque, uint8_t reg)return s->gpio_pdown;default : -fprintf (stderr,"%s: unknown register %02x\n" , __func__, reg); +error_report ("%s: unknown register %02x" , __func__, reg);return 0 ; } }
@@ -501,7 +501,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value)case 0x0c :/* PLL Mode Control 0 */ s->pll_mode = value &0x77 ;if ((value &3 ) ==0 || (value &3 ) ==3 ) -fprintf (stderr,"%s: wrong PLL Control bits (%i)\n" , +error_report ("%s: wrong PLL Control bits (%i)" , __func__, value &3 );break ;
@@ -541,7 +541,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value)case 0x28 :/* LCD Panel Configuration */ s->lcd_config = value &0xff ;if (value & (1 <<7 )) -fprintf (stderr,"%s: data swap not supported!\n" , __func__); +error_report ("%s: data swap not supported!" , __func__);break ;case 0x2a :/* LCD Horizontal Display Width */
@@ -585,7 +585,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value)case 0x40 :/* High-speed Serial Interface Tx Configuration Port 1 */ s->hssi_config[1 ] = value;if (((value >>4 ) &3 ) ==3 ) -fprintf (stderr,"%s: Illegal active-data-links value\n" , +error_report ("%s: Illegal active-data-links value" , __func__);break ;case 0x42 :/* High-speed Serial Interface Tx Mode */
@@ -641,7 +641,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) s->enable = value &1 ; s->blank = (value >>1 ) &1 ;if (value & (1 <<4 )) -fprintf (stderr,"%s: Macrovision enable attempt!\n" , __func__); +error_report ("%s: Macrovision enable attempt!" , __func__);break ;case 0x6a :/* Special Effects */
@@ -717,7 +717,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) s->iformat = value &0xf ; s->bpp = blizzard_iformat_bpp[s->iformat];if (!s->bpp) -fprintf (stderr,"%s: Illegal or unsupported input format %x\n" , +error_report ("%s: Illegal or unsupported input format %x" , __func__, s->iformat);break ;case 0x8e :/* Data Source Select */
@@ -729,7 +729,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value) s->iy[1] != s->oy[1])) || !((s->ix[1] - s->ix[0]) & (s->iy[1] - s->iy[0]) & (s->ox[1] - s->ox[0]) & (s->oy[1] - s->oy[0]) & 1)) -fprintf (stderr,"%s: Illegal input/output window positions\n" , +error_report ("%s: Illegal input/output window positions" , __func__);blizzard_transfer_setup (s);
@@ -783,8 +783,8 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value)case 0xe6 :/* Power-save */ s->pm = value &0x83 ;if (value & s->mode &1 ) -fprintf (stderr,"%s: The display must be disabled before entering " -"Standby Mode\n" , __func__); +error_report ("%s: The display must be disabled before entering " +"Standby Mode" , __func__);break ;case 0xe8 :/* Non-display Period Control / Status */ s->status = value &0x1b ;
@@ -815,7 +815,7 @@ static void blizzard_reg_write(void *opaque, uint8_t reg, uint16_t value)break ;default : -fprintf (stderr,"%s: unknown register %02x\n" , __func__, reg); +error_report ("%s: unknown register %02x" , __func__, reg);break ; } }
hw/display/omap_dss.c +7 -7
@@ -406,10 +406,10 @@ static void omap_disc_write(void *opaque, hwaddr addr, s->lcd.enable = (value >>0 ) &1 ;if (value & (1 <<12 ))/* OVERLAY_OPTIMIZATION */ if (!((s->dispc.l[1 ].attr | s->dispc.l[2 ].attr) &1 )) { -fprintf (stderr,"%s: Overlay Optimization when no overlay " -"region effectively exists leads to " -"unpredictable behaviour!\n" , __func__); - } +error_report ("%s: Overlay Optimization when no overlay " +"region effectively exists leads to " +"unpredictable behaviour!" , __func__); + }if (value & (1 <<6 )) {/* GODIGITAL */ /* XXX: Shadowed fields are: * s->dispc.config
@@ -525,8 +525,8 @@ static void omap_disc_write(void *opaque, hwaddr addr,case 0x0a0 :/* DISPC_GFX_ATTRIBUTES */ s->dispc.l[0 ].attr = value &0x7ff ;if (value & (3 <<9 )) -fprintf (stderr,"%s: Big-endian pixel format not supported\n" , - __func__); +error_report ("%s: Big-endian pixel format not supported" , + __func__); s->dispc.l[0 ].enable = value &1 ; s->dispc.l[0 ].bpp = (value >>1 ) &0xf ; s->dispc.invalidate =1 ;
@@ -617,7 +617,7 @@ static void omap_rfbi_transfer_start(struct omap_dss_s *s)if (s->rfbi.control & (1 <<1 )) {/* BYPASS */ /* TODO: in non-Bypass mode we probably need to just assert the * DRQ and wait for DMA to write the pixels. */ -fprintf (stderr,"%s: Bypass mode unimplemented\n" , __func__); +error_report ("%s: Bypass mode unimplemented" , __func__);return ; }
hw/display/pl110.c +1 -1
@@ -174,7 +174,7 @@ static void pl110_update_display(void *opaque) dest_width =4 ;break ;default : -fprintf (stderr,"pl110: Bad color depth\n" ); +error_report ("pl110: Bad color depth" );exit (1 ); }if (s->cr &PL110_CR_BGR )
hw/display/pxa2xx_lcd.c +1 -1
@@ -1050,7 +1050,7 @@ PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem, s->dest_width =4 ;break ;default : -fprintf (stderr,"%s: Bad color depth\n" , __func__); +error_report ("%s: Bad color depth" , __func__);exit (1 ); }
hw/display/qxl-render.c +3 -4
@@ -78,7 +78,7 @@ void qxl_render_resize(PCIQXLDevice *qxl) qxl->guest_primary.bits_pp =32 ;break ;default : -fprintf (stderr,"%s: unhandled format: %x\n" , __func__, +error_report ("%s: unhandled format: %x" , __func__, qxl->guest_primary.surface.format); qxl->guest_primary.bytes_pp =4 ; qxl->guest_primary.bits_pp =32 ;
@@ -247,7 +247,7 @@ static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor, }break ;default : -fprintf (stderr,"%s: not implemented: type %d\n" , +error_report ("%s: not implemented: type %d" , __func__, cursor->header.type); goto fail; }
@@ -275,9 +275,8 @@ int qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext) }if (qxl->debug >1 && cmd->type !=QXL_CURSOR_MOVE ) { -fprintf (stderr,"%s" , __func__); +error_report ("%s" , __func__);qxl_log_cmd_cursor (qxl, cmd, ext->group_id); -fprintf (stderr,"\n" ); }switch (cmd->type) {case QXL_CURSOR_SET :
hw/display/qxl.c +5 -5
@@ -875,7 +875,7 @@ static void interface_notify_update(QXLInstance *sin, uint32_t update_id)* Probably was at some earlier version that is prior to git start (2009), * and is still guest trigerrable. */ -fprintf (stderr,"%s: deprecated\n" , __func__); +error_report ("%s: deprecated" , __func__); }/* called from spice server thread context only */
@@ -905,7 +905,7 @@ static void interface_async_complete_io(PCIQXLDevice *qxl, QXLCookie *cookie)trace_qxl_interface_async_complete_io (qxl->id, current_async, cookie);if (!cookie) { -fprintf (stderr,"qxl: %s: error, cookie is NULL\n" , __func__); +error_report ("qxl: %s: error, cookie is NULL" , __func__);return ; }if (cookie && current_async != cookie->io) {
@@ -930,7 +930,7 @@ static void interface_async_complete_io(PCIQXLDevice *qxl, QXLCookie *cookie)qxl_spice_destroy_surface_wait_complete (qxl, cookie->u.surface_id);break ;default : -fprintf (stderr,"qxl: %s: unexpected current_async %d\n" , __func__, +error_report ("qxl: %s: unexpected current_async %d" , __func__, current_async); }qxl_send_events (qxl,QXL_INTERRUPT_IO_CMD );
@@ -998,7 +998,7 @@ static void interface_async_complete(QXLInstance *sin, uint64_t cookie_token)case QXL_COOKIE_TYPE_POST_LOAD_MONITORS_CONFIG :break ;default : -fprintf (stderr,"qxl: %s: unexpected cookie type %d\n" , +error_report ("qxl: %s: unexpected cookie type %d" , __func__, cookie->type);g_free (cookie); }
@@ -1875,7 +1875,7 @@ static void qxl_send_events(PCIQXLDevice *d, uint32_t events)trace_qxl_send_events (d->id, events);if (!qemu_spice_display_is_running (&d->ssd)) {/* spice-server tracks guest running state and should not do this */ -fprintf (stderr,"%s: spice-server bug: guest stopped, ignoring\n" , +error_report ("%s: spice-server bug: guest stopped, ignoring" , __func__);trace_qxl_send_events_vm_stopped (d->id, events);return ;
hw/display/tc6393xb.c +20 -16
@@ -159,7 +159,7 @@ void tc6393xb_gpio_out_set(TC6393xbState *s, int line, qemu_irq handler) {if (line >=TC6393XB_GPIOS ) { -fprintf (stderr,"TC6393xb: no GPIO pin %d\n" , line); +error_report ("TC6393xb: no GPIO pin %d" , line);return ; }
@@ -190,7 +190,7 @@ static void tc6393xb_l3v(void *opaque, int line, int level) {TC6393xbState *s = opaque; s->blank = !level; -fprintf (stderr,"L3V: %d\n" , level); +error_report ("L3V: %d" , level); }static void tc6393xb_sub_irq (void *opaque,int line,int level) {
@@ -257,7 +257,7 @@ static uint32_t tc6393xb_scr_readb(TC6393xbState *s, hwaddr addr)SCR_REG_B (CONFIG );SCR_REG_B (DEBUG ); } -fprintf (stderr,"tc6393xb_scr: unhandled read at %08x\n" , (uint32_t ) addr); +error_report ("tc6393xb_scr: unhandled read at %08x" , (uint32_t ) addr);return 0 ; }#undef SCR_REG_B
@@ -318,8 +318,8 @@ static void tc6393xb_scr_writeb(TC6393xbState *s, hwaddr addr, uint32_t value)SCR_REG_B (CONFIG );SCR_REG_B (DEBUG ); } -fprintf (stderr,"tc6393xb_scr: unhandled write at %08x: %02x\n" , - (uint32_t ) addr, value &0xff ); +error_report ("tc6393xb_scr: unhandled write at %08x: %02x" , + (uint32_t ) addr, value &0xff ); }#undef SCR_REG_B#undef SCR_REG_W
@@ -341,7 +341,7 @@ static uint32_t tc6393xb_nand_cfg_readb(TC6393xbState *s, hwaddr addr) {case NAND_CFG_BASE +3 :return s->nand_phys >> (addr -NAND_CFG_BASE ); } -fprintf (stderr,"tc6393xb_nand_cfg: unhandled read at %08x\n" , (uint32_t ) addr); +error_report ("tc6393xb_nand_cfg: unhandled read at %08x" , (uint32_t ) addr);return 0 ; }static void tc6393xb_nand_cfg_writeb (TC6393xbState *s,hwaddr addr,uint32_t value) {
@@ -357,7 +357,7 @@ static void tc6393xb_nand_cfg_writeb(TC6393xbState *s, hwaddr addr, uint32_t val s->nand_phys |= (value &0xff ) << ((addr -NAND_CFG_BASE ) *8 );return ; } -fprintf (stderr,"tc6393xb_nand_cfg: unhandled write at %08x: %02x\n" , +error_report ("tc6393xb_nand_cfg: unhandled write at %08x: %02x" , (uint32_t ) addr, value &0xff ); }
@@ -377,12 +377,14 @@ static uint32_t tc6393xb_nand_readb(TC6393xbState *s, hwaddr addr) {case NAND_IMR :return s->nand.imr; } -fprintf (stderr,"tc6393xb_nand: unhandled read at %08x\n" , (uint32_t ) addr); +error_report ("tc6393xb_nand: unhandled read at %08x" , (uint32_t ) addr);return 0 ; } -static void tc6393xb_nand_writeb (TC6393xbState *s,hwaddr addr,uint32_t value) { -// fprintf(stderr, "tc6393xb_nand: write at %08x: %02x\n", -// (uint32_t) addr, value & 0xff); +static void tc6393xb_nand_writeb (TC6393xbState *s,hwaddr addr,uint32_t value) +{ +/* error_report("tc6393xb_nand: write at %08x: %02x", +* (uint32_t) addr, value & 0xff); +*/ switch (addr) {case NAND_DATA +0 :case NAND_DATA +1 :
@@ -420,7 +422,7 @@ static void tc6393xb_nand_writeb(TC6393xbState *s, hwaddr addr, uint32_t value)tc6393xb_nand_irq (s);return ; } -fprintf (stderr,"tc6393xb_nand: unhandled write at %08x: %02x\n" , +error_report ("tc6393xb_nand: unhandled write at %08x: %02x" , (uint32_t ) addr, value &0xff ); }
@@ -522,13 +524,15 @@ static uint64_t tc6393xb_readb(void *opaque, hwaddr addr, };if ((addr &~0xff ) == s->nand_phys && s->nand_enable) { -// return tc6393xb_nand_readb(s, addr & 0xff); +/* return tc6393xb_nand_readb(s, addr & 0xff); */ uint8_t d =tc6393xb_nand_readb (s, addr &0xff ); -// fprintf(stderr, "tc6393xb_nand: read at %08x: %02hhx\n", (uint32_t) addr, d); +/* error_report("tc6393xb_nand: read at %08x: %02hhx", +* (uint32_t) addr, d); +*/ return d; } -// fprintf(stderr, "tc6393xb: unhandled read at %08x\n", (uint32_t) addr); +/* error_report("tc6393xb: unhandled read at %08x", (uint32_t) addr); */ return 0 ; }
@@ -548,7 +552,7 @@ static void tc6393xb_writeb(void *opaque, hwaddr addr,if ((addr &~0xff ) == s->nand_phys && s->nand_enable)tc6393xb_nand_writeb (s, addr &0xff , value);else -fprintf (stderr,"tc6393xb: unhandled write at %08x: %02x\n" , +error_report ("tc6393xb: unhandled write at %08x: %02x" , (uint32_t ) addr, (int )value &0xff ); }
hw/display/virtio-gpu-3d.c +2 -2
@@ -473,7 +473,7 @@ void virtio_gpu_virgl_process_cmd(VirtIOGPU *g,return ; }if (cmd->error) { -fprintf (stderr,"%s: ctrl 0x%x, error 0x%x\n" , __func__, +error_report ("%s: ctrl 0x%x, error 0x%x" , __func__, cmd->cmd_hdr.type, cmd->error);virtio_gpu_ctrl_response_nodata (g, cmd, cmd->error);return ;
@@ -556,7 +556,7 @@ static void virtio_gpu_print_stats(void *opaque)VirtIOGPU *g = opaque;if (g->stats.requests) { - fprintf(stderr, "stats: vq req %4d, %3d -- 3D %4d (%5d)\n", + error_report("stats: vq req %4d, %3d -- 3D %4d (%5d)", g->stats.requests, g->stats.max_inflight, g->stats.req_3d,
hw/display/vmware_vga.c +11 -11
@@ -293,45 +293,45 @@ static inline bool vmsvga_verify_rect(DisplaySurface *surface, int x, int y, int w, int h) { if (x < 0) { - fprintf(stderr, "%s: x was < 0 (%d)\n", name, x); + error_report("%s: x was < 0 (%d)", name, x);return false; }if (x >SVGA_MAX_WIDTH ) { -fprintf (stderr,"%s: x was > %d (%d)\n" , name,SVGA_MAX_WIDTH , x); +error_report ("%s: x was > %d (%d)" , name,SVGA_MAX_WIDTH , x);return false; }if (w <0 ) { -fprintf (stderr,"%s: w was < 0 (%d)\n" , name, w); +error_report ("%s: w was < 0 (%d)" , name, w);return false; }if (w >SVGA_MAX_WIDTH ) { -fprintf (stderr,"%s: w was > %d (%d)\n" , name,SVGA_MAX_WIDTH , w); +error_report ("%s: w was > %d (%d)" , name,SVGA_MAX_WIDTH , w);return false; }if (x + w >surface_width (surface)) { -fprintf (stderr,"%s: width was > %d (x: %d, w: %d)\n" , +error_report ("%s: width was > %d (x: %d, w: %d)" , name,surface_width (surface), x, w);return false; }if (y <0 ) { -fprintf (stderr,"%s: y was < 0 (%d)\n" , name, y); +error_report ("%s: y was < 0 (%d)" , name, y);return false; }if (y >SVGA_MAX_HEIGHT ) { -fprintf (stderr,"%s: y was > %d (%d)\n" , name,SVGA_MAX_HEIGHT , y); +error_report ("%s: y was > %d (%d)" , name,SVGA_MAX_HEIGHT , y);return false; }if (h <0 ) { -fprintf (stderr,"%s: h was < 0 (%d)\n" , name, h); +error_report ("%s: h was < 0 (%d)" , name, h);return false; }if (h >SVGA_MAX_HEIGHT ) { -fprintf (stderr,"%s: h was > %d (%d)\n" , name,SVGA_MAX_HEIGHT , h); +error_report ("%s: h was > %d (%d)" , name,SVGA_MAX_HEIGHT , h);return false; }if (y + h >surface_height (surface)) { -fprintf (stderr,"%s: update height > %d (y: %d, h: %d)\n" , +error_report ("%s: update height > %d (y: %d, h: %d)" , name,surface_height (surface), y, h);return false; }
@@ -529,7 +529,7 @@ static inline void vmsvga_cursor_define(struct vmsvga_state_s *s,#endif break ;default : -fprintf (stderr,"%s: unhandled bpp %d, using fallback cursor\n" , +error_report ("%s: unhandled bpp %d, using fallback cursor" , __func__, c->bpp);cursor_put (qc); qc =cursor_builtin_left_ptr ();
hw/dma/omap_dma.c +14 -12
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/arm/omap.h"
@@ -1898,13 +1899,13 @@ static void omap_dma4_write(void *opaque, hwaddr addr,omap_dma_reset (s->dma); s->ocp = value &0x3321 ;if (((s->ocp >>12 ) &3 ) ==3 )/* MIDLEMODE */ -fprintf (stderr,"%s: invalid DMA power mode\n" , __func__); +error_report ("%s: invalid DMA power mode" , __func__);return ;case 0x78 :/* DMA4_GCR */ s->gcr = value &0x00ff00ff ;if ((value &0xff ) ==0x00 )/* MAX_CHANNEL_FIFO_DEPTH */ -fprintf (stderr,"%s: wrong FIFO depth in GCR\n" , __func__); +error_report ("%s: wrong FIFO depth in GCR" , __func__);return ; case 0x80 ... 0xfff:
@@ -1934,8 +1935,8 @@ static void omap_dma4_write(void *opaque, hwaddr addr, ch->buf_disable = (value >>25 ) &1 ; ch->src_sync = (value >>24 ) &1 ;/* XXX For CamDMA must be 1 */ if (ch->buf_disable && !ch->src_sync) -fprintf (stderr,"%s: Buffering disable is not allowed in " -"destination synchronised mode\n" , __func__); +error_report ("%s: Buffering disable is not allowed in " +"destination synchronised mode" , __func__); ch->prefetch = (value >>23 ) &1 ; ch->bs = (value >>18 ) &1 ; ch->transparent_copy = (value >>17 ) &1 ;
@@ -1946,8 +1947,8 @@ static void omap_dma4_write(void *opaque, hwaddr addr, ch->priority = (value &0x0040 ) >>6 ; ch->fs = (value &0x0020 ) >>5 ;if (ch->fs && ch->bs && ch->mode[0 ] && ch->mode[1 ]) -fprintf (stderr,"%s: For a packet transfer at least one port " -"must be constant-addressed\n" , __func__); +error_report ("%s: For a packet transfer at least one port " +"must be constant-addressed" , __func__); ch->sync = (value &0x001f ) | ((value >>14 ) &0x0060 );/* XXX must be 0x01 for CamDMA */
@@ -1977,8 +1978,8 @@ static void omap_dma4_write(void *opaque, hwaddr addr, ch->endian[1 ] =(value >>19 ) &1 ; ch->endian_lock[1 ] =(value >>18 ) &1 ;if (ch->endian[0 ] != ch->endian[1 ]) -fprintf (stderr,"%s: DMA endianness conversion enable attempt\n" , - __func__); +error_report ("%s: DMA endianness conversion enable attempt" , + __func__); ch->write_mode = (value >>16 ) &3 ; ch->burst[1 ] = (value &0xc000 ) >>14 ; ch->pack[1 ] = (value &0x2000 ) >>13 ;
@@ -1986,12 +1987,13 @@ static void omap_dma4_write(void *opaque, hwaddr addr, ch->burst[0 ] = (value &0x0180 ) >>7 ; ch->pack[0 ] = (value &0x0040 ) >>6 ; ch->translate[0 ] = (value &0x003c ) >>2 ; -if (ch->translate[0 ] | ch->translate[1 ]) -fprintf (stderr,"%s: bad MReqAddressTranslate sideband signal\n" , - __func__); +if (ch->translate[0 ] | ch->translate[1 ]) { +error_report ("%s: bad MReqAddressTranslate sideband signal" , + __func__); + } ch->data_type =1 << (value &3 );if ((value &3 ) ==3 ) { -printf ("%s: bad data_type for DMA channel\n" , __func__); +error_report ("%s: bad data_type for DMA channel" , __func__); ch->data_type >>=1 ; }break ;
hw/dma/soc_dma.c +19 -18
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "qemu/timer.h" #include "hw/arm/soc_dma.h"
@@ -270,11 +271,11 @@ void soc_dma_port_add_fifo(struct soc_dma_s *soc, hwaddr virt_base,if (entry->type == soc_dma_port_mem) {if (entry->addr <= virt_base && entry->addr + entry->u.mem.size > virt_base) { -fprintf (stderr,"%s: FIFO at %" PRIx64 -" collides with RAM region at %" PRIx64 -"-%" PRIx64"\n" , __func__, - virt_base, entry->addr, - (entry->addr + entry->u.mem.size)); +error_report ("%s: FIFO at %" PRIx64 +" collides with RAM region at %" PRIx64 +"-%" PRIx64"" , __func__, + virt_base, entry->addr, + (entry->addr + entry->u.mem.size));exit (-1 ); }
@@ -284,9 +285,9 @@ void soc_dma_port_add_fifo(struct soc_dma_s *soc, hwaddr virt_base,while (entry < dma->memmap + dma->memmap_size && entry->addr <= virt_base) {if (entry->addr == virt_base && entry->u.fifo.out == out) { -fprintf (stderr,"%s: FIFO at %" PRIx64 -" collides FIFO at %" PRIx64"\n" , - __func__, virt_base, entry->addr); +error_report ("%s: FIFO at %" PRIx64 +" collides FIFO at %" PRIx64"" , + __func__, virt_base, entry->addr);exit (-1 ); }
@@ -321,11 +322,11 @@ void soc_dma_port_add_mem(struct soc_dma_s *soc, uint8_t *phys_base,if ((entry->addr >= virt_base && entry->addr < virt_base + size) || (entry->addr <= virt_base && entry->addr + entry->u.mem.size > virt_base)) { -fprintf (stderr,"%s: RAM at %" PRIx64"-%" PRIx64 -" collides with RAM region at %" PRIx64 -"-%" PRIx64"\n" , __func__, - virt_base, virt_base + size, - entry->addr, entry->addr + entry->u.mem.size); +error_report ("%s: RAM at %" PRIx64"-%" PRIx64 +" collides with RAM region at %" PRIx64 +"-%" PRIx64"" , __func__, + virt_base, virt_base + size, + entry->addr, entry->addr + entry->u.mem.size);exit (-1 ); }
@@ -334,11 +335,11 @@ void soc_dma_port_add_mem(struct soc_dma_s *soc, uint8_t *phys_base, }else {if (entry->addr >= virt_base && entry->addr < virt_base + size) { -fprintf (stderr,"%s: RAM at %" PRIx64"-%" PRIx64 -" collides with FIFO at %" PRIx64 -"\n" , __func__, - virt_base, virt_base + size, - entry->addr); +error_report ("%s: RAM at %" PRIx64"-%" PRIx64 +" collides with FIFO at %" PRIx64 +"" , __func__, + virt_base, virt_base + size, + entry->addr);exit (-1 ); }
hw/gpio/omap_gpio.c +1 -1
@@ -399,7 +399,7 @@ static void omap2_gpio_module_write(void *opaque, hwaddr addr,case 0x10 :/* GPIO_SYSCONFIG */ if (((value >>3 ) &3 ) ==3 ) -fprintf (stderr,"%s: bad IDLEMODE value\n" , __func__); +error_report ("%s: bad IDLEMODE value" , __func__);if (value &2 )omap2_gpio_module_reset (s); s->config[0 ] = value &0x1d ;
hw/i2c/omap_i2c.c +5 -5
@@ -340,13 +340,13 @@ static void omap_i2c_write(void *opaque, hwaddr addr,break ; }if ((value & (1 <<15 )) && !(value & (1 <<10 ))) {/* MST */ -fprintf (stderr,"%s: I^2C slave mode not supported\n" , - __func__); +error_report ("%s: I^2C slave mode not supported" , + __func__);break ; }if ((value & (1 <<15 )) && value & (1 <<8 )) {/* XA */ -fprintf (stderr,"%s: 10-bit addressing mode not supported\n" , - __func__); +error_report ("%s: 10-bit addressing mode not supported" , + __func__);break ; }if ((value & (1 <<15 )) && value & (1 <<0 )) {/* STT */
@@ -393,7 +393,7 @@ static void omap_i2c_write(void *opaque, hwaddr addr,omap_i2c_interrupts_update (s); }if (value & (1 <<15 ))/* ST_EN */ -fprintf (stderr,"%s: System Test not supported\n" , __func__); +error_report ("%s: System Test not supported" , __func__);break ;default :
hw/i386/kvm/apic.c +5 -4
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "hw/i386/apic_internal.h"
@@ -128,7 +129,7 @@ static void kvm_apic_vapic_base_update(APICCommonState *s) ret =kvm_vcpu_ioctl (CPU (s->cpu),KVM_SET_VAPIC_ADDR , &vapid_addr);if (ret <0 ) { -fprintf (stderr,"KVM: setting VAPIC address failed (%s)\n" , +error_report ("KVM: setting VAPIC address failed (%s)" ,strerror (-ret));abort (); }
@@ -145,7 +146,7 @@ static void kvm_apic_put(CPUState *cs, run_on_cpu_data data) ret =kvm_vcpu_ioctl (CPU (s->cpu),KVM_SET_LAPIC , &kapic);if (ret <0 ) { -fprintf (stderr,"KVM_SET_LAPIC failed: %s\n" ,strerror (ret)); +error_report ("KVM_SET_LAPIC failed: %s" ,strerror (ret));abort (); } }
@@ -167,7 +168,7 @@ static void do_inject_external_nmi(CPUState *cpu, run_on_cpu_data data)if (!(lvt &APIC_LVT_MASKED ) && ((lvt >>8 ) &7 ) ==APIC_DM_NMI ) { ret =kvm_vcpu_ioctl (cpu,KVM_NMI );if (ret <0 ) { -fprintf (stderr,"KVM: injection failed, NMI lost (%s)\n" , +error_report ("KVM: injection failed, NMI lost (%s)" ,strerror (-ret)); } }
@@ -184,7 +185,7 @@ static void kvm_send_msi(MSIMessage *msg) ret =kvm_irqchip_send_msi (kvm_state, *msg);if (ret <0 ) { -fprintf (stderr,"KVM: injection failed, MSI lost (%s)\n" , +error_report ("KVM: injection failed, MSI lost (%s)" ,strerror (-ret)); } }
hw/i386/kvm/clock.c +4 -3
@@ -14,6 +14,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "qemu/host-utils.h"
@@ -99,7 +100,7 @@ static void kvm_update_clock(KVMClockState *s) ret =kvm_vm_ioctl (kvm_state,KVM_GET_CLOCK , &data);if (ret <0 ) { -fprintf (stderr,"KVM_GET_CLOCK failed: %s\n" ,strerror (ret)); +error_report ("KVM_GET_CLOCK failed: %s" ,strerror (ret));abort (); } s->clock = data.clock;
@@ -174,7 +175,7 @@ static void kvmclock_vm_state_change(void *opaque, int running, data.clock = s->clock; ret =kvm_vm_ioctl (kvm_state,KVM_SET_CLOCK , &data);if (ret <0 ) { -fprintf (stderr,"KVM_SET_CLOCK failed: %s\n" ,strerror (ret)); +error_report ("KVM_SET_CLOCK failed: %s" ,strerror (ret));abort (); }
@@ -185,7 +186,7 @@ static void kvmclock_vm_state_change(void *opaque, int running, ret =kvm_vcpu_ioctl (cpu,KVM_KVMCLOCK_CTRL ,0 );if (ret) {if (ret != -EINVAL ) { -fprintf (stderr,"%s: %s\n" , __func__,strerror (-ret)); +error_report ("%s: %s" , __func__,strerror (-ret)); }return ; }
hw/i386/kvm/i8254.c +4 -3
@@ -24,6 +24,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include <linux/kvm.h> #include "qapi/error.h" #include "qemu/timer.h"
@@ -101,7 +102,7 @@ static void kvm_pit_get(PITCommonState *pit)if (kvm_has_pit_state2 ()) { ret =kvm_vm_ioctl (kvm_state,KVM_GET_PIT2 , &kpit);if (ret <0 ) { -fprintf (stderr,"KVM_GET_PIT2 failed: %s\n" ,strerror (ret)); +error_report ("KVM_GET_PIT2 failed: %s" ,strerror (ret));abort (); } pit->channels[0 ].irq_disabled = kpit.flags &KVM_PIT_FLAGS_HPET_LEGACY ;
@@ -112,7 +113,7 @@ static void kvm_pit_get(PITCommonState *pit)*/ ret =kvm_vm_ioctl (kvm_state,KVM_GET_PIT , &kpit);if (ret <0 ) { -fprintf (stderr,"KVM_GET_PIT failed: %s\n" ,strerror (ret)); +error_report ("KVM_GET_PIT failed: %s" ,strerror (ret));abort (); } }
@@ -175,7 +176,7 @@ static void kvm_pit_put(PITCommonState *pit)kvm_has_pit_state2 () ?KVM_SET_PIT2 :KVM_SET_PIT , &kpit);if (ret <0 ) { -fprintf (stderr,"%s failed: %s\n" , +error_report ("%s failed: %s" ,kvm_has_pit_state2 () ?"KVM_SET_PIT2" :"KVM_SET_PIT" ,strerror (ret));abort ();
hw/i386/kvm/i8259.c +3 -2
@@ -10,6 +10,7 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/isa/i8259_internal.h" #include "hw/i386/apic_internal.h" #include "sysemu/kvm.h"
@@ -39,7 +40,7 @@ static void kvm_pic_get(PICCommonState *s) chip.chip_id = s->master ?KVM_IRQCHIP_PIC_MASTER :KVM_IRQCHIP_PIC_SLAVE ; ret =kvm_vm_ioctl (kvm_state,KVM_GET_IRQCHIP , &chip);if (ret <0 ) { -fprintf (stderr,"KVM_GET_IRQCHIP failed: %s\n" ,strerror (ret)); +error_report ("KVM_GET_IRQCHIP failed: %s" ,strerror (ret));abort (); }
@@ -92,7 +93,7 @@ static void kvm_pic_put(PICCommonState *s) ret =kvm_vm_ioctl (kvm_state,KVM_SET_IRQCHIP , &chip);if (ret <0 ) { -fprintf (stderr,"KVM_SET_IRQCHIP failed: %s\n" ,strerror (ret)); +error_report ("KVM_SET_IRQCHIP failed: %s" ,strerror (ret));abort (); } }
hw/i386/kvm/ioapic.c +3 -2
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "monitor/monitor.h" #include "hw/i386/pc.h" #include "hw/i386/ioapic_internal.h"
@@ -74,7 +75,7 @@ static void kvm_ioapic_get(IOAPICCommonState *s) chip.chip_id =KVM_IRQCHIP_IOAPIC ; ret =kvm_vm_ioctl (kvm_state,KVM_GET_IRQCHIP , &chip);if (ret <0 ) { -fprintf (stderr,"KVM_GET_IRQCHIP failed: %s\n" ,strerror (ret)); +error_report ("KVM_GET_IRQCHIP failed: %s" ,strerror (ret));abort (); }
@@ -107,7 +108,7 @@ static void kvm_ioapic_put(IOAPICCommonState *s) ret =kvm_vm_ioctl (kvm_state,KVM_SET_IRQCHIP , &chip);if (ret <0 ) { -fprintf (stderr,"KVM_GET_IRQCHIP failed: %s\n" ,strerror (ret)); +error_report ("KVM_GET_IRQCHIP failed: %s" ,strerror (ret));abort (); } }
hw/i386/multiboot.c +11 -10
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "hw/hw.h"
@@ -184,7 +185,7 @@ int load_multiboot(FWCfgState *fw_cfg,memset (&mbs,0 ,sizeof (mbs));if (flags &0x00000004 ) {/* MULTIBOOT_HEADER_HAS_VBE */ -fprintf (stderr,"qemu: multiboot knows VBE. we don't.\n" ); +error_report ("qemu: multiboot knows VBE. we don't." ); }if (!(flags &0x00010000 )) {/* MULTIBOOT_HEADER_HAS_ADDR */ uint64_t elf_entry;
@@ -193,7 +194,7 @@ int load_multiboot(FWCfgState *fw_cfg,fclose (f);if (((struct elf64_hdr *)header)->e_machine ==EM_X86_64 ) { -fprintf (stderr,"Cannot load x86-64 image, give a 32bit one.\n" ); +error_report ("Cannot load x86-64 image, give a 32bit one." );exit (1 ); }
@@ -201,7 +202,7 @@ int load_multiboot(FWCfgState *fw_cfg, &elf_low, &elf_high,0 ,I386_ELF_MACHINE , 0, 0);if (kernel_size <0 ) { -fprintf (stderr,"Error while loading elf kernel\n" ); +error_report ("Error while loading elf kernel" );exit (1 ); } mh_load_addr = elf_low;
@@ -210,7 +211,7 @@ int load_multiboot(FWCfgState *fw_cfg, mbs.mb_buf =g_malloc (mb_kernel_size);if (rom_copy (mbs.mb_buf, mh_load_addr, mb_kernel_size) != mb_kernel_size) { -fprintf (stderr,"Error while fetching elf kernel from rom\n" ); +error_report ("Error while fetching elf kernel from rom" );exit (1 ); }
@@ -224,7 +225,7 @@ int load_multiboot(FWCfgState *fw_cfg, mh_load_addr =ldl_p (header+i+16 );if (mh_header_addr < mh_load_addr) { -fprintf (stderr,"invalid mh_load_addr address\n" ); +error_report ("invalid mh_load_addr address" );exit (1 ); }
@@ -234,19 +235,19 @@ int load_multiboot(FWCfgState *fw_cfg,if (mh_load_end_addr) {if (mh_bss_end_addr < mh_load_addr) { -fprintf (stderr,"invalid mh_bss_end_addr address\n" ); +error_report ("invalid mh_bss_end_addr address" );exit (1 ); } mb_kernel_size = mh_bss_end_addr - mh_load_addr;if (mh_load_end_addr < mh_load_addr) { -fprintf (stderr,"invalid mh_load_end_addr address\n" ); +error_report ("invalid mh_load_end_addr address" );exit (1 ); } mb_load_size = mh_load_end_addr - mh_load_addr; }else {if (kernel_file_size < mb_kernel_text_offset) { -fprintf (stderr,"invalid kernel_file_size\n" ); +error_report ("invalid kernel_file_size" );exit (1 ); } mb_kernel_size = kernel_file_size - mb_kernel_text_offset;
@@ -269,7 +270,7 @@ int load_multiboot(FWCfgState *fw_cfg, mbs.mb_buf =g_malloc (mb_kernel_size);fseek (f, mb_kernel_text_offset,SEEK_SET );if (fread (mbs.mb_buf,1 , mb_load_size, f) != mb_load_size) { -fprintf (stderr,"fread() failed\n" ); +error_report ("fread() failed" );exit (1 ); }memset (mbs.mb_buf + mb_load_size,0 , mb_kernel_size - mb_load_size);
@@ -326,7 +327,7 @@ int load_multiboot(FWCfgState *fw_cfg,mb_debug ("multiboot loading module: %s\n" , tmpbuf); mb_mod_length =get_image_size (tmpbuf);if (mb_mod_length <0 ) { -fprintf (stderr,"Failed to open file '%s'\n" , tmpbuf); +error_report ("Failed to open file '%s'" , tmpbuf);exit (1 ); }
hw/i386/pc.c +9 -9
@@ -856,14 +856,14 @@ static void load_linux(PCMachineState *pcms,if (!f || !(kernel_size =get_file_size (f)) ||fread (header,1 ,MIN (ARRAY_SIZE (header), kernel_size), f) !=MIN (ARRAY_SIZE (header), kernel_size)) { -fprintf (stderr,"qemu: could not load kernel '%s': %s\n" , +error_report ("qemu: could not load kernel '%s': %s" , kernel_filename,strerror (errno));exit (1 ); }/* kernel protocol version */ #if 0 -fprintf (stderr,"header magic: %#x\n" ,ldl_p (header+0x202 )); +error_report ("header magic: %#x" ,ldl_p (header +0x202 ));#endif if (ldl_p (header+0x202 ) ==0x53726448 ) { protocol =lduw_p (header+0x206 );
@@ -960,13 +960,13 @@ static void load_linux(PCMachineState *pcms,/* load initrd */ if (initrd_filename) {if (protocol <0x200 ) { -fprintf (stderr,"qemu: linux kernel too old to load a ram disk\n" ); +error_report ("qemu: linux kernel too old to load a ram disk" );exit (1 ); } initrd_size =get_image_size (initrd_filename);if (initrd_size <0 ) { -fprintf (stderr,"qemu: error reading initrd %s: %s\n" , +error_report ("qemu: error reading initrd %s: %s" , initrd_filename,strerror (errno));exit (1 ); }
@@ -991,7 +991,7 @@ static void load_linux(PCMachineState *pcms, } setup_size = (setup_size+1 )*512 ;if (setup_size > kernel_size) { -fprintf (stderr,"qemu: invalid kernel header\n" ); +error_report ("qemu: invalid kernel header" );exit (1 ); } kernel_size -= setup_size;
@@ -1000,11 +1000,11 @@ static void load_linux(PCMachineState *pcms, kernel =g_malloc (kernel_size);fseek (f,0 ,SEEK_SET );if (fread (setup,1 , setup_size, f) != setup_size) { -fprintf (stderr,"fread() failed\n" ); +error_report ("fread() failed" );exit (1 ); }if (fread (kernel,1 , kernel_size, f) != kernel_size) { -fprintf (stderr,"fread() failed\n" ); +error_report ("fread() failed" );exit (1 ); }fclose (f);
@@ -1012,13 +1012,13 @@ static void load_linux(PCMachineState *pcms,/* append dtb to kernel */ if (dtb_filename) {if (protocol <0x209 ) { -fprintf (stderr,"qemu: Linux kernel too old to load a dtb\n" ); +error_report ("qemu: Linux kernel too old to load a dtb" );exit (1 ); } dtb_size =get_image_size (dtb_filename);if (dtb_size <=0 ) { -fprintf (stderr,"qemu: error reading dtb %s: %s\n" , +error_report ("qemu: error reading dtb %s: %s" , dtb_filename,strerror (errno));exit (1 ); }
hw/i386/pc_piix.c +1 -1
@@ -1090,7 +1090,7 @@ void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id)* Note that vendor id is always PCI_VENDOR_ID_INTEL. */ if (!bridge_dev) { -fprintf (stderr,"set igd-passthrough-isa-bridge failed!\n" ); +error_report ("set igd-passthrough-isa-bridge failed!" );return ; }pci_config_set_device_id (bridge_dev->config, pch_dev_id);
hw/i386/pc_sysfw.c +3 -2
@@ -201,7 +201,7 @@ static void old_pc_system_rom_init(MemoryRegion *rom_memory, bool isapc_ram_fw) ret =rom_add_file_fixed (bios_name, (uint32_t )(-bios_size),-1 );if (ret !=0 ) { bios_error: -fprintf (stderr,"qemu: could not load PC BIOS '%s'\n" , bios_name); +error_report ("qemu: could not load PC BIOS '%s'" , bios_name);exit (1 ); }g_free (filename);
@@ -243,7 +243,8 @@ void pc_system_firmware_init(MemoryRegion *rom_memory, bool isapc_ram_fw)if (kvm_enabled () && !kvm_readonly_mem_enabled ()) {/* Older KVM cannot execute from device memory. So, flash memory * cannot be used unless the readonly memory kvm capability is present. */ -fprintf (stderr,"qemu: pflash with kvm requires KVM readonly memory support\n" ); +error_report ("qemu: pflash with kvm requires KVM readonly memory" +" support" );exit (1 ); }
hw/i386/xen/xen-hvm.c +17 -15
@@ -246,9 +246,10 @@ void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size, MemoryRegion *mr,if (runstate_check (RUN_STATE_INMIGRATE )) {/* RAM already populated in Xen */ -fprintf (stderr,"%s: do not alloc " RAM_ADDR_FMT -" bytes of ram at " RAM_ADDR_FMT " when runstate is INMIGRATE\n" , - __func__, size, ram_addr); +error_report ("%s: do not alloc " RAM_ADDR_FMT +" bytes of ram at " RAM_ADDR_FMT " when runstate is " +" INMIGRATE" , + __func__, size, ram_addr);return ; }
@@ -444,8 +445,9 @@ static int xen_remove_from_physmap(XenIOState *state, rc =xen_xc_domain_add_to_physmap (xen_xc, xen_domid, XENMAPSPACE_gmfn, idx, gpfn);if (rc) { -fprintf (stderr,"add_to_physmap MFN %" PRI_xen_pfn" to PFN %" - PRI_xen_pfn" failed: %d (errno: %d)\n" , idx, gpfn, rc, errno); +error_report ("add_to_physmap MFN %" PRI_xen_pfn" to PFN %" + PRI_xen_pfn" failed: %d (errno: %d)" , idx, + gpfn, rc, errno);return -rc; } }
@@ -1090,11 +1092,11 @@ static void cpu_handle_ioreq(void *opaque) req->data = copy.data;if (req->state !=STATE_IOREQ_INPROCESS ) { -fprintf (stderr,"Badness in I/O request ... not in service?!: " -"%x, ptr: %x, port: %" PRIx64", " -"data: %" PRIx64", count: %u, size: %u, type: %u\n" , - req->state, req->data_is_ptr, req->addr, - req->data, req->count, req->size, req->type); +error_report ("Badness in I/O request ... not in service?!: " +"%x, ptr: %x, port: %" PRIx64", " +"data: %" PRIx64", count: %u, size: %u, type: %u" , + req->state, req->data_is_ptr, req->addr, + req->data, req->count, req->size, req->type);destroy_hvm_domain (false);return ; }
@@ -1397,16 +1399,16 @@ void destroy_hvm_domain(bool reboot) xc_handle =xc_interface_open (0 ,0 ,0 );if (xc_handle ==NULL ) { -fprintf (stderr,"Cannot acquire xenctrl handle\n" ); +error_report ("Cannot acquire xenctrl handle" ); }else { sts =xc_domain_shutdown (xc_handle, xen_domid, reboot ? SHUTDOWN_reboot : SHUTDOWN_poweroff);if (sts !=0 ) { -fprintf (stderr,"xc_domain_shutdown failed to issue %s, " -"sts %d, %s\n" , reboot ?"reboot" :"poweroff" , +error_report ("xc_domain_shutdown failed to issue %s, " +"sts %d, %s" , reboot ?"reboot" :"poweroff" , sts,strerror (errno)); }else { -fprintf (stderr,"Issued domain %d %s\n" , xen_domid, +error_report ("Issued domain %d %s" , xen_domid, reboot ?"reboot" :"poweroff" ); }xc_interface_close (xc_handle);
@@ -1425,7 +1427,7 @@ void xen_shutdown_fatal_error(const char *fmt, ...)va_start (ap, fmt);vfprintf (stderr, fmt, ap);va_end (ap); -fprintf (stderr,"Will destroy the domain.\n" ); +error_report ("Will destroy the domain." );/* destroy the domain */ qemu_system_shutdown_request (SHUTDOWN_CAUSE_HOST_ERROR ); }
hw/i386/xen/xen-mapcache.c +6 -6
@@ -377,7 +377,7 @@ ram_addr_t xen_ram_addr_from_mapcache(void *ptr) } }if (!found) { -fprintf (stderr,"%s, could not find %p\n" , __func__, ptr); +error_report ("%s, could not find %p" , __func__, ptr); QTAILQ_FOREACH(reventry, &mapcache->locked_entries, next) {DPRINTF (" " TARGET_FMT_plx" -> %p is present\n" , reventry->paddr_index, reventry->vaddr_req);
@@ -477,9 +477,9 @@ void xen_invalidate_map_cache(void)if (!reventry->dma) {continue ; } -fprintf (stderr,"Locked DMA mapping while invalidating mapcache!" -" " TARGET_FMT_plx" -> %p is present\n" , - reventry->paddr_index, reventry->vaddr_req); +error_report ("Locked DMA mapping while invalidating mapcache!" +" " TARGET_FMT_plx" -> %p is present" , + reventry->paddr_index, reventry->vaddr_req); }for (i =0 ; i < mapcache->nr_buckets; i++) {
@@ -545,8 +545,8 @@ static uint8_t *xen_replace_cache_entry_unlocked(hwaddr old_phys_addr, address_index = new_phys_addr >>MCACHE_BUCKET_SHIFT ; address_offset = new_phys_addr & (MCACHE_BUCKET_SIZE -1 ); -fprintf (stderr,"Replacing a dummy mapcache entry for " TARGET_FMT_plx \ -" with " TARGET_FMT_plx"\n" , old_phys_addr, new_phys_addr); +error_report ("Replacing a dummy mapcache entry for " TARGET_FMT_plx \ +" with " TARGET_FMT_plx"" , old_phys_addr, new_phys_addr);xen_remap_bucket (entry, entry->vaddr_base, cache_size, address_index, false);
hw/i386/xen/xen_apic.c +1 -1
@@ -24,7 +24,7 @@ static void xen_apic_mem_write(void *opaque, hwaddr addr, uint64_t data, unsigned size) {if (size !=sizeof (uint32_t )) { -fprintf (stderr,"Xen: APIC write data size = %d, invalid\n" , size); +error_report ("Xen: APIC write data size = %d, invalid" , size);return ; }
hw/ide/ahci.c +3 -3
@@ -410,8 +410,8 @@ static void ahci_mem_write(void *opaque, hwaddr addr,/* Only aligned reads are allowed on AHCI */ if (addr &3 ) { -fprintf (stderr,"ahci: Mis-aligned write to addr 0x" - TARGET_FMT_plx"\n" , addr); +error_report ("ahci: Mis-aligned write to addr 0x" + TARGET_FMT_plx"" , addr);return ; }
@@ -1053,7 +1053,7 @@ static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis,g_assert (is_ncq (ncq_fis->command));if (ncq_tfs->used) {/* error - already in use */ -fprintf (stderr,"%s: tag %d already used\n" , __func__, tag); +error_report ("%s: tag %d already used" , __func__, tag);return ; }
hw/ide/core.c +1 -1
@@ -2762,7 +2762,7 @@ static void ide_drive_pio_pre_save(void *opaque) idx =transfer_end_table_idx (s->end_transfer_func);if (idx ==-1 ) { -fprintf (stderr,"%s: invalid end_transfer_func for DRQ_STAT\n" , +error_report ("%s: invalid end_transfer_func for DRQ_STAT" , __func__); s->end_transfer_fn_idx =2 ; }else {
hw/input/lm832x.c +3 -3
@@ -239,7 +239,7 @@ static uint8_t lm_kbd_read(LM823KbdState *s, int reg, int byte)default :lm_kbd_error (s,ERR_CMDUNK ); -fprintf (stderr,"%s: unknown command %02x\n" , __func__, reg); +error_report ("%s: unknown command %02x" , __func__, reg);return 0x00 ; }
@@ -330,7 +330,7 @@ static void lm_kbd_write(LM823KbdState *s, int reg, int byte, uint8_t value) s->reg = LM832x_GENERAL_ERROR;if ((value &3 ) && (value &3 ) !=3 ) {lm_kbd_error (s,ERR_BADPAR ); -fprintf (stderr,"%s: invalid clock setting in RCPWM\n" , +error_report ("%s: invalid clock setting in RCPWM" , __func__); }/* TODO: Validate that the command is only issued once */
@@ -378,7 +378,7 @@ static void lm_kbd_write(LM823KbdState *s, int reg, int byte, uint8_t value)break ;default :lm_kbd_error (s,ERR_CMDUNK ); -fprintf (stderr,"%s: unknown command %02x\n" , __func__, reg); +error_report ("%s: unknown command %02x" , __func__, reg);break ; } }
hw/input/pckbd.c +2 -1
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/isa/isa.h" #include "hw/i386/pc.h"
@@ -307,7 +308,7 @@ static void kbd_write_command(void *opaque, hwaddr addr,/* ignore that */ break ;default : -fprintf (stderr,"qemu: unsupported keyboard cmd=0x%02x\n" , (int )val); +error_report ("qemu: unsupported keyboard cmd=0x%02x" , (int )val);break ; } }
hw/input/pxa2xx_keypad.c +1 -1
@@ -326,7 +326,7 @@ void pxa27x_register_keypad(PXA2xxKeyPadState *kp, const struct keymap *map, int size) {if (!map || size <0x80 ) { -fprintf (stderr,"%s - No PXA keypad map defined\n" , __func__); +error_report ("%s - No PXA keypad map defined" , __func__);exit (-1 ); }
hw/input/tsc2005.c +8 -9
@@ -200,17 +200,17 @@ static void tsc2005_write(TSC2005State *s, int reg, uint16_t data) s->host_mode = (data >>15 ) !=0 ;if (s->enabled != !(data &0x4000 )) { s->enabled = !(data &0x4000 ); -fprintf (stderr,"%s: touchscreen sense %sabled\n" , - __func__, s->enabled ?"en" :"dis" ); +error_report ("%s: touchscreen sense %sabled" , + __func__, s->enabled ?"en" :"dis" );if (s->busy && !s->enabled)timer_del (s->timer); s->busy = s->busy && s->enabled; } s->nextprecision = (data >>13 ) &1 ; s->timing[0 ] = data &0x1fff ; -if ((s->timing[0 ] >>11 ) ==3 ) -fprintf (stderr,"%s: illegal conversion clock setting\n" , - __func__); +if ((s->timing[0 ] >>11 ) ==3 ) { +error_report ("%s: illegal conversion clock setting" , __func__); + }break ;case 0xd :/* CFR1 */ s->timing[1 ] = data &0xf07 ;
@@ -221,8 +221,7 @@ static void tsc2005_write(TSC2005State *s, int reg, uint16_t data)break ;default : -fprintf (stderr,"%s: write into read-only register %x\n" , - __func__, reg); +error_report ("%s: write into read-only register %x" , __func__, reg); } }
@@ -337,8 +336,8 @@ static uint8_t tsc2005_txrx_word(void *opaque, uint8_t value) s->nextprecision = (value >>2 ) &1 ;if (s->enabled != !(value &1 )) { s->enabled = !(value &1 ); -fprintf (stderr,"%s: touchscreen sense %sabled\n" , - __func__, s->enabled ?"en" :"dis" ); +error_report ("%s: touchscreen sense %sabled" , + __func__, s->enabled ?"en" :"dis" );if (s->busy && !s->enabled)timer_del (s->timer); s->busy = s->busy && s->enabled;
hw/input/tsc210x.c +36 -36
185 lines not on this page · raw message
hw/input/virtio-input-hid.c +7 -7
@@ -208,8 +208,8 @@ static void virtio_input_handle_event(DeviceState *dev, QemuConsole *src,virtio_input_send (vinput, &event); }else {if (key->down) { -fprintf (stderr,"%s: unmapped key: %d [%s]\n" , __func__, - qcode,QKeyCode_str (qcode)); +error_report ("%s: unmapped key: %d [%s]" , __func__, + qcode,QKeyCode_str (qcode)); } }break ;
@@ -222,9 +222,9 @@ static void virtio_input_handle_event(DeviceState *dev, QemuConsole *src,virtio_input_send (vinput, &event); }else {if (btn->down) { -fprintf (stderr,"%s: unmapped button: %d [%s]\n" , __func__, - btn->button, -InputButton_str (btn->button)); +error_report ("%s: unmapped button: %d [%s]" , __func__, + btn->button, +InputButton_str (btn->button)); } }break ;
@@ -310,8 +310,8 @@ static void virtio_input_hid_handle_status(VirtIOInput *vinput,kbd_put_ledstate (vhid->ledstate);break ;default : -fprintf (stderr,"%s: unknown type %d\n" , __func__, -le16_to_cpu (event->type)); +error_report ("%s: unknown type %d" , __func__, +le16_to_cpu (event->type));break ; } }
hw/input/virtio-input.c +3 -2
@@ -5,6 +5,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu/iov.h" #include "trace.h"
@@ -121,8 +122,8 @@ void virtio_input_add_config(VirtIOInput *vinput,if (virtio_input_find_config (vinput, config->select, config->subsel)) {/* should not happen */ -fprintf (stderr,"%s: duplicate config: %d/%d\n" , - __func__, config->select, config->subsel); +error_report ("%s: duplicate config: %d/%d" , + __func__, config->select, config->subsel);abort (); }
hw/intc/arm_gic_kvm.c +6 -6
@@ -316,12 +316,12 @@ static void kvm_arm_gic_put(GICState *s) num_cpu = ((reg &0xe0 ) >>5 ) +1 ;if (num_irq < s->num_irq) { -fprintf (stderr,"Restoring %u IRQs, but kernel supports max %d\n" , - s->num_irq, num_irq); +error_report ("Restoring %u IRQs, but kernel supports max %d" , + s->num_irq, num_irq);abort (); }else if (num_cpu != s->num_cpu) { -fprintf (stderr,"Restoring %u CPU interfaces, kernel only has %d\n" , - s->num_cpu, num_cpu); +error_report ("Restoring %u CPU interfaces, kernel only has %d" , + s->num_cpu, num_cpu);/* Did we not create the VCPUs in the kernel yet? */ abort (); }
@@ -411,8 +411,8 @@ static void kvm_arm_gic_get(GICState *s) s->num_cpu = ((reg &0xe0 ) >>5 ) +1 ;if (s->num_irq >GIC_MAXIRQ ) { -fprintf (stderr,"Too many IRQs reported from the kernel: %d\n" , - s->num_irq); +error_report ("Too many IRQs reported from the kernel: %d" , + s->num_irq);abort (); }
hw/intc/omap_intc.c +2 -2
@@ -539,8 +539,8 @@ static void omap2_inth_write(void *opaque, hwaddr addr,/* TODO: Make a bitmap (or sizeof(char)map) of access privileges * for every register, see Chapter 3 and 4 for privileged mode. */ if (value &1 ) -fprintf (stderr,"%s: protection mode enable attempt\n" , - __func__); +error_report ("%s: protection mode enable attempt" , + __func__);return ;case 0x50 :/* INTC_IDLE */
hw/intc/openpic.c +4 -3
@@ -34,6 +34,7 @@* */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/ppc/mac.h" #include "hw/pci/pci.h"
@@ -162,7 +163,7 @@ static int inttgt_to_output(int inttgt) } } -fprintf (stderr,"%s: unsupported inttgt %d\n" , __func__, inttgt); +error_report ("%s: unsupported inttgt %d" , __func__, inttgt);return OPENPIC_OUTPUT_INT ; }
@@ -534,7 +535,7 @@ static void openpic_set_irq(void *opaque, int n_IRQ, int level)IRQSource *src;if (n_IRQ >=OPENPIC_MAX_IRQ ) { -fprintf (stderr,"%s: IRQ %d out of range\n" , __func__, n_IRQ); +error_report ("%s: IRQ %d out of range" , __func__, n_IRQ);abort (); }
@@ -1208,7 +1209,7 @@ static uint32_t openpic_iack(OpenPICState *opp, IRQDest *dst, int cpu) src = &opp->src[irq];if (!(src->ivpr &IVPR_ACTIVITY_MASK ) || !(IVPR_PRIORITY (src->ivpr) > dst->ctpr)) { -fprintf (stderr,"%s: bad raised IRQ %d ctpr %d ivpr 0x%08x\n" , +error_report ("%s: bad raised IRQ %d ctpr %d ivpr 0x%08x" , __func__, irq, dst->ctpr, src->ivpr);openpic_update_irq (opp, irq); retval = opp->spve;
hw/intc/openpic_kvm.c +4 -4
@@ -150,8 +150,8 @@ static void kvm_openpic_region_add(MemoryListener *listener, ret =ioctl (opp->fd,KVM_SET_DEVICE_ATTR , &attr);if (ret <0 ) { -fprintf (stderr,"%s: %s %" PRIx64"\n" , __func__, -strerror (errno), reg_base); +error_report ("%s: %s %" PRIx64"" , __func__, +strerror (errno), reg_base); } }
@@ -184,8 +184,8 @@ static void kvm_openpic_region_del(MemoryListener *listener, ret =ioctl (opp->fd,KVM_SET_DEVICE_ATTR , &attr);if (ret <0 ) { -fprintf (stderr,"%s: %s %" PRIx64"\n" , __func__, -strerror (errno), reg_base); +error_report ("%s: %s %" PRIx64"" , __func__, +strerror (errno), reg_base); } }
hw/intc/s390_flic_kvm.c +2 -2
@@ -83,7 +83,7 @@ static void flic_enable_pfault(KVMS390FLICState *flic) rc =ioctl (flic->fd,KVM_SET_DEVICE_ATTR , &attr);if (rc) { -fprintf (stderr,"flic: couldn't enable pfault\n" ); +error_report ("flic: couldn't enable pfault" ); } }
@@ -97,7 +97,7 @@ static void flic_disable_wait_pfault(KVMS390FLICState *flic) rc =ioctl (flic->fd,KVM_SET_DEVICE_ATTR , &attr);if (rc) { -fprintf (stderr,"flic: couldn't disable pfault\n" ); +error_report ("flic: couldn't disable pfault" ); } }
hw/ipmi/ipmi.c +1 -0
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/ipmi/ipmi.h" #include "sysemu/sysemu.h"
hw/ipmi/ipmi_bmc_extern.c +3 -2
@@ -28,6 +28,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu/timer.h" #include "chardev/char-fe.h"
@@ -194,8 +195,8 @@ static void ipmi_bmc_extern_handle_command(IPMIBmc *b,if (ibe->outlen) {/* We already have a command queued. Shouldn't ever happen. */ -fprintf (stderr,"IPMI KCS: Got command when not finished with the" -" previous command\n" ); +error_report ("IPMI KCS: Got command when not finished with the" +" previous command" );abort (); }
hw/isa/isa-bus.c +4 -3
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "hw/hw.h" #include "monitor/monitor.h"
@@ -186,15 +187,15 @@ ISADevice *isa_vga_init(ISABus *bus)case VGA_CIRRUS :return isa_create_simple (bus,"isa-cirrus-vga" );case VGA_QXL : -fprintf (stderr,"%s: qxl: no PCI bus\n" , __func__); +error_report ("%s: qxl: no PCI bus" , __func__);return NULL ;case VGA_STD :return isa_create_simple (bus,"isa-vga" );case VGA_VMWARE : -fprintf (stderr,"%s: vmware_vga: no PCI bus\n" , __func__); +error_report ("%s: vmware_vga: no PCI bus" , __func__);return NULL ;case VGA_VIRTIO : -fprintf (stderr,"%s: virtio-vga: no PCI bus\n" , __func__); +error_report ("%s: virtio-vga: no PCI bus" , __func__);return NULL ;case VGA_NONE :default :
hw/lm32/lm32_boards.c +3 -2
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "hw/sysbus.h"
@@ -152,7 +153,7 @@ static void lm32_evr_init(MachineState *machine) }if (kernel_size <0 ) { -fprintf (stderr,"qemu: could not load kernel '%s'\n" , +error_report ("qemu: could not load kernel '%s'" , kernel_filename);exit (1 ); }
@@ -250,7 +251,7 @@ static void lm32_uclinux_init(MachineState *machine) }if (kernel_size <0 ) { -fprintf (stderr,"qemu: could not load kernel '%s'\n" , +error_report ("qemu: could not load kernel '%s'" , kernel_filename);exit (1 ); }
hw/lm32/milkymist.c +3 -2
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "hw/sysbus.h"
@@ -149,7 +150,7 @@ milkymist_init(MachineState *machine)/* if no kernel is given no valid bios rom is a fatal error */ if (!kernel_filename && !dinfo && !bios_filename && !qtest_enabled ()) { -fprintf (stderr,"qemu: could not load Milkymist One bios '%s'\n" , +error_report ("qemu: could not load Milkymist One bios '%s'" , bios_name);exit (1 ); }
@@ -188,7 +189,7 @@ milkymist_init(MachineState *machine) }if (kernel_size <0 ) { -fprintf (stderr,"qemu: could not load kernel '%s'\n" , +error_report ("qemu: could not load kernel '%s'" , kernel_filename);exit (1 ); }
hw/m68k/an5206.c +2 -2
@@ -66,7 +66,7 @@ static void an5206_init(MachineState *machine)if (qtest_enabled ()) {return ; } -fprintf (stderr,"Kernel image must be specified\n" ); +error_report ("Kernel image must be specified" );exit (1 ); }
@@ -83,7 +83,7 @@ static void an5206_init(MachineState *machine) entry =KERNEL_LOAD_ADDR ; }if (kernel_size <0 ) { -fprintf (stderr,"qemu: could not load kernel '%s'\n" , kernel_filename); +error_report ("qemu: could not load kernel '%s'" , kernel_filename);exit (1 ); }
hw/m68k/mcf5206.c +2 -1
@@ -6,6 +6,7 @@* This code is licensed under the GPL */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "hw/hw.h"
@@ -220,7 +221,7 @@ static void m5206_mbar_update(m5206_mbar_state *s)break ;default :/* Unknown vector. */ -fprintf (stderr,"Unhandled vector for IRQ %d\n" , irq); +error_report ("Unhandled vector for IRQ %d" , irq); vector =0xf ;break ; }
hw/m68k/mcf5208.c +4 -3
@@ -6,6 +6,7 @@* This code is licensed under the GPL */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "cpu.h"
@@ -257,7 +258,7 @@ static void mcf5208evb_init(MachineState *machine)mcf5208_sys_init (address_space_mem, pic);if (nb_nics >1 ) { -fprintf (stderr,"Too many NICs\n" ); +error_report ("Too many NICs" );exit (1 ); }if (nd_table[0 ].used) {
@@ -292,7 +293,7 @@ static void mcf5208evb_init(MachineState *machine)if (qtest_enabled ()) {return ; } -fprintf (stderr,"Kernel image must be specified\n" ); +error_report ("Kernel image must be specified" );exit (1 ); }
@@ -309,7 +310,7 @@ static void mcf5208evb_init(MachineState *machine) entry =0x40000000 ; }if (kernel_size <0 ) { -fprintf (stderr,"qemu: could not load kernel '%s'\n" , kernel_filename); +error_report ("qemu: could not load kernel '%s'" , kernel_filename);exit (1 ); }
hw/microblaze/boot.c +1 -1
@@ -86,7 +86,7 @@ static int microblaze_load_dtb(hwaddr addr, r =qemu_fdt_setprop_string (fdt,"/chosen" ,"bootargs" , kernel_cmdline);if (r <0 ) { -fprintf (stderr,"couldn't set /chosen/bootargs\n" ); +error_report ("couldn't set /chosen/bootargs" ); } }
hw/mips/boston.c +2 -2
@@ -353,7 +353,7 @@ static const void *boston_fdt_filter(void *opaque, const void *fdt_orig, err =fdt_open_into (fdt_orig, fdt, fdt_sz);if (err) { -fprintf (stderr,"unable to open FDT\n" ); +error_report ("unable to open FDT" );return NULL ; }
@@ -361,7 +361,7 @@ static const void *boston_fdt_filter(void *opaque, const void *fdt_orig, ? machine->kernel_cmdline :" " ; err =qemu_fdt_setprop_string (fdt,"/chosen" ,"bootargs" , cmdline);if (err <0 ) { -fprintf (stderr,"couldn't set /chosen/bootargs\n" ); +error_report ("couldn't set /chosen/bootargs" );return NULL ; }
hw/mips/mips_fulong2e.c +2 -2
@@ -143,7 +143,7 @@ static int64_t load_kernel (CPUMIPSState *env) initrd_offset, ram_size - initrd_offset); }if (initrd_size == (target_ulong) -1 ) { -fprintf (stderr,"qemu: could not load initial ram disk '%s'\n" , +error_report ("qemu: could not load initial ram disk '%s'" , loaderparams.initrd_filename);exit (1 ); }
@@ -342,7 +342,7 @@ static void mips_fulong2e_init(MachineState *machine) isa_bus =vt82c686b_init (pci_bus,PCI_DEVFN (FULONG2E_VIA_SLOT ,0 ));if (!isa_bus) { -fprintf (stderr,"vt82c686b_init error\n" ); +error_report ("vt82c686b_init error" );exit (1 ); }
hw/mips/mips_jazz.c +2 -2
@@ -271,10 +271,10 @@ static void mips_jazz_init(MachineState *machine,sysbus_connect_irq (sysbus,0 ,qdev_get_gpio_in (rc4030,4 ));break ; }else if (is_help_option (nd->model)) { -fprintf (stderr,"qemu: Supported NICs: dp83932\n" ); +error_report ("qemu: Supported NICs: dp83932" );exit (1 ); }else { -fprintf (stderr,"qemu: Unsupported NIC: %s\n" , nd->model); +error_report ("qemu: Unsupported NIC: %s" , nd->model);exit (1 ); } }
hw/mips/mips_malta.c +2 -2
@@ -856,8 +856,8 @@ static int64_t load_kernel (void) ram_size - initrd_offset); }if (initrd_size == (target_ulong) -1 ) { -fprintf (stderr,"qemu: could not load initial ram disk '%s'\n" , - loaderparams.initrd_filename); +error_report ("qemu: could not load initial ram disk '%s'" , + loaderparams.initrd_filename);exit (1 ); } }
hw/mips/mips_mipssim.c +2 -2
@@ -101,8 +101,8 @@ static int64_t load_kernel(void) initrd_offset, loaderparams.ram_size - initrd_offset); }if (initrd_size == (target_ulong) -1 ) { -fprintf (stderr,"qemu: could not load initial ram disk '%s'\n" , - loaderparams.initrd_filename); +error_report ("qemu: could not load initial ram disk '%s'" , + loaderparams.initrd_filename);exit (1 ); } }
hw/mips/mips_r4k.c +3 -3
@@ -121,8 +121,8 @@ static int64_t load_kernel(void) ram_size - initrd_offset); }if (initrd_size == (target_ulong) -1 ) { -fprintf (stderr,"qemu: could not load initial ram disk '%s'\n" , - loaderparams.initrd_filename); +error_report ("qemu: could not load initial ram disk '%s'" , + loaderparams.initrd_filename);exit (1 ); } }
@@ -246,7 +246,7 @@ void mips_r4k_init(MachineState *machine) blk_by_legacy_dinfo(dinfo), sector_len, mips_rom / sector_len, 4, 0, 0, 0, 0, be)) { -fprintf (stderr,"qemu: Error registering flash memory.\n" ); +error_report ("qemu: Error registering flash memory." ); } }else if (!qtest_enabled ()) {/* not fatal */
hw/misc/a9scu.c +2 -1
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/misc/a9scu.h" static uint64_t a9_scu_read(void *opaque, hwaddr offset,
@@ -59,7 +60,7 @@ static void a9_scu_write(void *opaque, hwaddr offset, mask =0xffffffff ;break ;default : -fprintf (stderr,"Invalid size %u in write to a9 scu register %x\n" , +error_report ("Invalid size %u in write to a9 scu register %x" , size, (unsigned )offset);return ; }
hw/misc/omap_gpmc.c +6 -5
@@ -19,6 +19,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/block/flash.h" #include "hw/arm/omap.h"
@@ -408,7 +409,7 @@ static void omap_gpmc_cs_map(struct omap_gpmc_s *s, int cs)/* TODO: check for overlapping regions and report access errors */ if (mask !=0x8 && mask !=0xc && mask !=0xe && mask !=0xf && !(s->accept_256 && !mask)) { -fprintf (stderr,"%s: invalid chip-select mask address (0x%x)\n" , +error_report ("%s: invalid chip-select mask address (0x%x)" , __func__, mask); }
@@ -642,7 +643,7 @@ static void omap_gpmc_write(void *opaque, hwaddr addr,case 0x010 :/* GPMC_SYSCONFIG */ if ((value >>3 ) ==0x3 ) -fprintf (stderr,"%s: bad SDRAM idle mode %" PRIi64"\n" , +error_report ("%s: bad SDRAM idle mode %" PRIi64"" , __func__, value >>3 );if (value &2 )omap_gpmc_reset (s);
@@ -806,7 +807,7 @@ static void omap_gpmc_write(void *opaque, hwaddr addr,break ;case 0x230 :/* GPMC_TESTMODE_CTRL */ if (value &7 ) -fprintf (stderr,"%s: test mode enable attempt\n" , __func__); +error_report ("%s: test mode enable attempt" , __func__);break ;default :
@@ -864,7 +865,7 @@ void omap_gpmc_attach(struct omap_gpmc_s *s, int cs, MemoryRegion *iomem)assert (iomem);if (cs <0 || cs >=8 ) { -fprintf (stderr,"%s: bad chip-select %i\n" , __func__, cs); +error_report ("%s: bad chip-select %i" , __func__, cs);exit (-1 ); } f = &s->cs_file[cs];
@@ -881,7 +882,7 @@ void omap_gpmc_attach_nand(struct omap_gpmc_s *s, int cs, DeviceState *nand)assert (nand);if (cs <0 || cs >=8 ) { -fprintf (stderr,"%s: bad chip-select %i\n" , __func__, cs); +error_report ("%s: bad chip-select %i" , __func__, cs);exit (-1 ); } f = &s->cs_file[cs];
hw/misc/omap_l4.c +3 -2
@@ -18,6 +18,7 @@* with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "hw/hw.h" #include "hw/arm/omap.h"
@@ -126,7 +127,7 @@ struct omap_target_agent_s *omap_l4ta_get(struct omap_l4_s *bus,break ; }if (!ta) { -fprintf (stderr,"%s: bad target agent (%i)\n" , __func__, cs); +error_report ("%s: bad target agent (%i)" , __func__, cs);exit (-1 ); }
@@ -151,7 +152,7 @@ hwaddr omap_l4_attach(struct omap_target_agent_s *ta,hwaddr base;if (region <0 || region >= ta->regions) { -fprintf (stderr,"%s: bad io region (%i)\n" , __func__, region); +error_report ("%s: bad io region (%i)" , __func__, region);exit (-1 ); }
hw/scsi/spapr_vscsi.c +25 -24
49 lines not on this page · raw message
hw/sh4/sh7750.c +33 -31
64 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Part of the diff is not shown here. View the raw message.
PATCH 6/8 ui: Replace fprintf(stderr, "*\n" with error_report()
In reply to Alistair FrancisReplace 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}' \
{} +---
ui/cocoa.m | 6 +++--- ui/console.c | 2 +- ui/curses.c | 2 +- ui/cursor.c | 10 +++++----- ui/gtk.c | 10 +++++----- ui/input-linux.c | 3 ++- ui/keymaps.c | 4 ++-- ui/sdl.c | 14 +++++++------- ui/sdl2.c | 8 ++++---- ui/sdl_zoom.c | 3 ++- ui/shader.c | 8 ++++---- ui/spice-display.c | 10 +++++----- ui/vnc-enc-tight.c | 4 ++-- ui/vnc-enc-zlib.c | 4 ++-- ui/vnc-enc-zrle.c | 4 ++-- ui/vnc.c | 2 +- 16 files changed, 48 insertions(+), 46 deletions(-)
ui/cocoa.m +3 -3
@@ -235,7 +235,7 @@ const int mac_to_qkeycode_map[] = { static int cocoa_keycode_to_qemu(int keycode) { if (ARRAY_SIZE(mac_to_qkeycode_map) <= keycode) { - fprintf(stderr, "(cocoa) warning unknown keycode 0x%x\n", keycode); + error_report("(cocoa) warning unknown keycode 0x%x", keycode); return 0; } return mac_to_qkeycode_map[keycode];
@@ -908,7 +908,7 @@ QemuCocoaView *cocoaView; // create a view and add it to the window cocoaView = [[QemuCocoaView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 640.0, 480.0)]; if(!cocoaView) { - fprintf(stderr, "(cocoa) can't create a view\n"); + error_report("(cocoa) can't create a view"); exit(1); }
@@ -917,7 +917,7 @@ QemuCocoaView *cocoaView; styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskMiniaturizable|NSWindowStyleMaskClosable backing:NSBackingStoreBuffered defer:NO]; if(!normalWindow) { - fprintf(stderr, "(cocoa) can't create window\n"); + error_report("(cocoa) can't create window"); exit(1); } [normalWindow setAcceptsMouseMovedEvents:YES];
ui/console.c +1 -1
@@ -1417,7 +1417,7 @@ void register_displaychangelistener(DisplayChangeListener *dcl)/* display has opengl support */ assert (dcl->con);if (dcl->con->gl) { -fprintf (stderr,"can't register two opengl displays (%s, %s)\n" , +error_report ("can't register two opengl displays (%s, %s)" , dcl->ops->dpy_name, dcl->con->gl->ops->dpy_name);exit (1 ); }
ui/curses.c +1 -1
@@ -423,7 +423,7 @@ void curses_display_init(DisplayState *ds, int full_screen) {#ifndef _WIN32if (!isatty (1 )) { -fprintf (stderr,"We need a terminal output\n" ); +error_report ("We need a terminal output" );exit (1 ); }#endif
ui/cursor.c +5 -5
@@ -18,12 +18,12 @@ static QEMUCursor *cursor_parse_xpm(const char *xpm[])/* parse header line: width, height, #colors, #chars */ if (sscanf (xpm[line],"%u %u %u %u" , &width, &height, &colors, &chars) !=4 ) { -fprintf (stderr,"%s: header parse error: \"%s\"\n" , - __func__, xpm[line]); +error_report ("%s: header parse error: \"%s\"" , + __func__, xpm[line]);return NULL ; }if (chars !=1 ) { -fprintf (stderr,"%s: chars != 1 not supported\n" , __func__); +error_report ("%s: chars != 1 not supported" , __func__);return NULL ; } line++;
@@ -40,7 +40,7 @@ static QEMUCursor *cursor_parse_xpm(const char *xpm[])continue ; } } -fprintf (stderr,"%s: color parse error: \"%s\"\n" , +error_report ("%s: color parse error: \"%s\"" , __func__, xpm[line]);return NULL ; }
@@ -75,7 +75,7 @@ void cursor_print_ascii_art(QEMUCursor *c, const char *prefix)fprintf (stderr,"o" );/* other */ } } -fprintf (stderr,"|\n" ); +error_report ("|" ); } }
ui/gtk.c +5 -5
@@ -1254,7 +1254,7 @@ static gboolean gd_win_grab(void *opaque) {VirtualConsole *vc = opaque; -fprintf (stderr,"%s: %s\n" , __func__, vc->label); +error_report ("%s: %s" , __func__, vc->label);if (vc->s->ptr_owner) {gd_ungrab_pointer (vc->s); }else {
@@ -2210,12 +2210,12 @@ static void gd_set_keycode_type(GtkDisplayState *s) keycodes =XGetAtomName (x11_display, desc->names->keycodes); }if (keycodes ==NULL ) { -fprintf (stderr,"could not lookup keycode name\n" ); +error_report ("could not lookup keycode name" ); }else if (strstart (keycodes,"evdev" ,NULL )) { s->has_evdev = true; }else if (!strstart (keycodes,"xfree86" ,NULL )) { -fprintf (stderr,"unknown keycodes `%s', please report to " -"[email protected]\n" , keycodes); +error_report ("unknown keycodes `%s', please report to " +"[email protected]" , keycodes); }if (desc) {
@@ -2239,7 +2239,7 @@ void gtk_display_init(DisplayState *ds, bool full_screen, bool grab_on_hover)GdkDisplay *window_display;if (!gtkinit) { -fprintf (stderr,"gtk initialization failed\n" ); +error_report ("gtk initialization failed" );exit (1 ); }
ui/input-linux.c +2 -1
@@ -5,6 +5,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "qemu/config-file.h"
@@ -241,7 +242,7 @@ static void input_linux_event(void *opaque) rc =read (il->fd, &p[il->read_offset], read_size);if (rc != read_size) {if (rc <0 && errno !=EAGAIN ) { -fprintf (stderr,"%s: read: %s\n" , __func__,strerror (errno)); +error_report ("%s: read: %s" , __func__,strerror (errno));qemu_set_fd_handler (il->fd,NULL ,NULL ,NULL );close (il->fd); }else if (rc >0 ) {
ui/keymaps.c +2 -2
@@ -105,7 +105,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, f = filename ?fopen (filename,"r" ) :NULL ;g_free (filename);if (!f) { -fprintf (stderr,"Could not read keymap file: '%s'\n" , language); +error_report ("Could not read keymap file: '%s'" , language);return NULL ; }
@@ -150,7 +150,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table,if (strstr (rest,"numlock" )) {add_to_key_range (&k->keypad_range, keycode);add_to_key_range (&k->numlock_range, keysym); -/* fprintf(stderr, "keypad keysym %04x keycode %d\n", +/* error_report("keypad keysym %04x keycode %d", keysym, keycode); */ }
ui/sdl.c +7 -7
@@ -91,7 +91,7 @@ static void sdl_update(DisplayChangeListener *dcl,SDL_BlitSurface (guest_screen, &rec, real_screen, &rec); }else {if (sdl_zoom_blit (guest_screen, real_screen,SMOOTHING_ON , &rec) <0 ) { -fprintf (stderr,"Zoom blit failed\n" ); +error_report ("Zoom blit failed" );exit (1 ); } }
@@ -120,7 +120,7 @@ static void do_sdl_resize(int width, int height, int bpp) tmp_screen =SDL_SetVideoMode (width, height, bpp, flags);if (!real_screen) {if (!tmp_screen) { -fprintf (stderr,"Could not open SDL display (%dx%dx%d): %s\n" , +error_report ("Could not open SDL display (%dx%dx%d): %s" , width, height, bpp,SDL_GetError ());exit (1 ); }
@@ -130,7 +130,7 @@ static void do_sdl_resize(int width, int height, int bpp)* resolution failed. */ if (!tmp_screen) { -fprintf (stderr,"Failed to set SDL display (%dx%dx%d): %s\n" , +error_report ("Failed to set SDL display (%dx%dx%d): %s" , width, height, bpp,SDL_GetError ());return ; }
@@ -241,12 +241,12 @@ static int check_for_evdev(void) XkbKeycodesNameMask, desc) == Success)) { keycodes =XGetAtomName (info.info.x11.display, desc->names->keycodes);if (keycodes ==NULL ) { -fprintf (stderr,"could not lookup keycode name\n" ); +error_report ("could not lookup keycode name" ); }else if (strstart (keycodes,"evdev" ,NULL )) { has_evdev =1 ; }else if (!strstart (keycodes,"xfree86" ,NULL )) { -fprintf (stderr,"unknown keycodes `%s', please report to " -"[email protected]\n" , keycodes); +error_report ("unknown keycodes `%s', please report to " +"[email protected]" , keycodes); } }
@@ -988,7 +988,7 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) flags =SDL_INIT_VIDEO |SDL_INIT_NOPARACHUTE ;if (SDL_Init (flags)) { -fprintf (stderr,"Could not initialize SDL(%s) - exiting\n" , +error_report ("Could not initialize SDL(%s) - exiting" ,SDL_GetError ());exit (1 ); }
ui/sdl2.c +4 -4
@@ -400,7 +400,7 @@ static void handle_keydown(SDL_Event *ev) 160); height = (surface_height (scon->surface) * width) /surface_width (scon->surface); -fprintf (stderr,"%s: scale to %dx%d\n" , +error_report ("%s: scale to %dx%d" , __func__, width, height);sdl_scale (scon, width, height);sdl2_redraw (scon);
@@ -686,13 +686,13 @@ static void sdl_mouse_define(DisplayChangeListener *dcl, 0xff0000, 0x00ff00, 0xff, 0xff000000);if (!guest_sprite_surface) { -fprintf (stderr,"Failed to make rgb surface from %p\n" , c); +error_report ("Failed to make rgb surface from %p" , c);return ; } guest_sprite =SDL_CreateColorCursor (guest_sprite_surface, c->hot_x, c->hot_y);if (!guest_sprite) { -fprintf (stderr,"Failed to make color cursor from %p\n" , c); +error_report ("Failed to make color cursor from %p" , c);return ; } if (guest_cursor &&
@@ -783,7 +783,7 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) flags =SDL_INIT_VIDEO |SDL_INIT_NOPARACHUTE ;if (SDL_Init (flags)) { -fprintf (stderr,"Could not initialize SDL(%s) - exiting\n" , +error_report ("Could not initialize SDL(%s) - exiting" ,SDL_GetError ());exit (1 ); }
ui/sdl_zoom.c +2 -1
@@ -12,6 +12,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "sdl_zoom.h" static void sdl_zoom_rgb16(SDL_Surface *src, SDL_Surface *dst, int smooth,
@@ -81,7 +82,7 @@ int sdl_zoom_blit(SDL_Surface *src_sfc, SDL_Surface *dst_sfc, int smooth,else if (src_sfc->format->BitsPerPixel ==16 )sdl_zoom_rgb16 (src_sfc, dst_sfc, smooth, &zoom);else { -fprintf (stderr,"pixel format not supported\n" ); +error_report ("pixel format not supported" );return -1 ; }
ui/shader.c +4 -4
@@ -85,9 +85,9 @@ GLuint qemu_gl_create_compile_shader(GLenum type, const GLchar *src)glGetShaderiv (shader,GL_INFO_LOG_LENGTH , &length); errmsg =g_malloc (length);glGetShaderInfoLog (shader, length, &length, errmsg); -fprintf (stderr,"%s: compile %s error\n%s\n" , __func__, - (type ==GL_VERTEX_SHADER ) ?"vertex" :"fragment" , - errmsg); +error_report ("%s: compile %s error: %s" , __func__, + (type ==GL_VERTEX_SHADER ) ?"vertex" :"fragment" , + errmsg);g_free (errmsg);return 0 ; }
@@ -110,7 +110,7 @@ GLuint qemu_gl_create_link_program(GLuint vert, GLuint frag)glGetProgramiv (program,GL_INFO_LOG_LENGTH , &length); errmsg =g_malloc (length);glGetProgramInfoLog (program, length, &length, errmsg); -fprintf (stderr,"%s: link program: %s\n" , __func__, errmsg); +error_report ("%s: link program: %s" , __func__, errmsg);g_free (errmsg);return 0 ; }
ui/spice-display.c +5 -5
@@ -630,13 +630,13 @@ static int interface_req_cursor_notification(QXLInstance *sin)static void interface_notify_update (QXLInstance *sin,uint32_t update_id) { -fprintf (stderr,"%s: abort()\n" , __func__); +error_report ("%s: abort()" , __func__);abort (); }static int interface_flush_resources (QXLInstance *sin) { -fprintf (stderr,"%s: abort()\n" , __func__); +error_report ("%s: abort()" , __func__);abort ();return 0 ; }
@@ -646,7 +646,7 @@ static void interface_update_area_complete(QXLInstance *sin, QXLRect *dirty, uint32_t num_updated_rects) {/* should never be called, used in qxl native mode only */ - fprintf(stderr, "%s: abort()\n", __func__); +error_report ("%s: abort()" , __func__);abort (); }
@@ -671,7 +671,7 @@ static void interface_async_complete(QXLInstance *sin, uint64_t cookie_token)#endif default :/* should never be called, used in qxl native mode only */ -fprintf (stderr,"%s: abort()\n" , __func__); +error_report ("%s: abort()" , __func__);abort (); }g_free (cookie);
@@ -955,7 +955,7 @@ static void qemu_spice_gl_scanout_texture(DisplayChangeListener *dcl,assert (tex_id); fd =egl_get_fd_for_texture (tex_id, &stride, &fourcc);if (fd <0 ) { -fprintf (stderr,"%s: failed to get fd for texture\n" , __func__); +error_report ("%s: failed to get fd for texture" , __func__);return ; } dprint(1, "%s: %dx%d (stride %d, fourcc 0x%x)\n", __func__,
ui/vnc-enc-tight.c +2 -2
@@ -800,7 +800,7 @@ static int tight_init_stream(VncState *vs, int stream_id, MAX_MEM_LEVEL, strategy);if (err !=Z_OK ) { -fprintf (stderr,"VNC: error initializing zlib\n" ); +error_report ("VNC: error initializing zlib" );return -1 ; }
@@ -865,7 +865,7 @@ static int tight_compress_data(VncState *vs, int stream_id, size_t bytes,/* start encoding */ if (deflate (zstream,Z_SYNC_FLUSH ) !=Z_OK ) { -fprintf (stderr,"VNC: error during tight compression\n" ); +error_report ("VNC: error during tight compression" );return -1 ; }
ui/vnc-enc-zlib.c +2 -2
@@ -80,7 +80,7 @@ static int vnc_zlib_stop(VncState *vs) MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY);if (err !=Z_OK ) { -fprintf (stderr,"VNC: error initializing zlib\n" ); +error_report ("VNC: error initializing zlib" );return -1 ; }
@@ -109,7 +109,7 @@ static int vnc_zlib_stop(VncState *vs)// start encoding if (deflate (zstream,Z_SYNC_FLUSH ) !=Z_OK ) { -fprintf (stderr,"VNC: error during zlib compression\n" ); +error_report ("VNC: error during zlib compression" );return -1 ; }
ui/vnc-enc-zrle.c +2 -2
@@ -85,7 +85,7 @@ static int zrle_compress_data(VncState *vs, int level) MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY);if (err !=Z_OK ) { -fprintf (stderr,"VNC: error initializing zlib\n" ); +error_report ("VNC: error initializing zlib" );return -1 ; }
@@ -104,7 +104,7 @@ static int zrle_compress_data(VncState *vs, int level)/* start encoding */ if (deflate (zstream,Z_SYNC_FLUSH ) !=Z_OK ) { -fprintf (stderr,"VNC: error during zrle compression\n" ); +error_report ("VNC: error during zrle compression" );return -1 ; }
ui/vnc.c +1 -1
@@ -71,7 +71,7 @@ static void vnc_set_share_mode(VncState *vs, VncShareMode mode) [VNC_SHARE_MODE_EXCLUSIVE] = "exclusive", [VNC_SHARE_MODE_DISCONNECTED ] ="disconnected" , }; -fprintf (stderr,"%s/%p: %s -> %s\n" , __func__, +error_report ("%s/%p: %s -> %s" , __func__, vs->ioc, mn[vs->share_mode], mn[mode]);#endif
Signature · 1 line
2.11.0
PATCH 8/8 target: Replace fprintf(stderr, "*\n" with error_report()
In reply to Alistair FrancisReplace 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.
---
target/arm/arm-powerctl.c | 5 +++-- target/arm/arm-semi.c | 3 ++- target/arm/helper.c | 4 ++-- target/arm/kvm.c | 16 ++++++------- target/arm/kvm32.c | 2 +- target/arm/kvm64.c | 2 +- target/arm/translate-a64.c | 4 ++-- target/arm/translate.c | 2 +- target/cris/helper.c | 2 +- target/cris/translate.c | 2 +- target/i386/hax-all.c | 52 +++++++++++++++++++++---------------------- target/i386/hax-darwin.c | 26 +++++++++++----------- target/i386/hax-mem.c | 4 ++-- target/i386/hax-windows.c | 42 +++++++++++++++++------------------ target/i386/kvm.c | 38 +++++++++++++++---------------- target/i386/misc_helper.c | 12 +++++----- target/lm32/op_helper.c | 4 ++-- target/mips/mips-semi.c | 3 ++- target/mips/translate.c | 2 +- target/ppc/excp_helper.c | 4 ++-- target/ppc/kvm.c | 36 +++++++++++++++--------------- target/ppc/mmu-hash64.c | 2 +- target/ppc/mmu_helper.c | 2 +- target/ppc/translate.c | 20 ++++++++--------- target/ppc/translate_init.c | 53 ++++++++++++++++++++++---------------------- target/s390x/kvm.c | 20 ++++++++--------- target/s390x/misc_helper.c | 2 +- target/sh4/translate.c | 4 ++-- target/unicore32/translate.c | 4 ++-- 29 files changed, 188 insertions(+), 184 deletions(-)
target/arm/arm-powerctl.c +3 -2
@@ -9,6 +9,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "cpu.h" #include "cpu-qom.h" #include "internals.h"
@@ -24,7 +25,7 @@ #define DPRINTF(fmt, args...) \ do { \ if (DEBUG_ARM_POWERCTL) { \ - fprintf(stderr, "[ARM]%s: " fmt , __func__, ##args); \ + error_report("[ARM]%s: " fmt , __func__, ##args); \ } \ } while (0)
@@ -32,7 +33,7 @@ CPUState *arm_get_cpu_by_id(uint64_t id) {CPUState *cpu; -DPRINTF ("cpu %" PRId64"\n" , id); +DPRINTF ("cpu %" PRId64"" , id);CPU_FOREACH (cpu) {ARMCPU *armcpu =ARM_CPU (cpu);
target/arm/arm-semi.c +2 -1
@@ -19,6 +19,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "cpu.h" #include "exec/semihost.h"
@@ -649,7 +650,7 @@ target_ulong do_arm_semihosting(CPUARMState *env) }/* fall through -- invalid for A32/T32 */ default : -fprintf (stderr,"qemu: Unsupported SemiHosting SWI 0x%02x\n" , nr); +error_report ("qemu: Unsupported SemiHosting SWI 0x%02x" , nr);cpu_dump_state (cs, stderr, fprintf,0 );abort (); }
target/arm/helper.c +2 -2
@@ -5460,9 +5460,9 @@ static void add_cpreg_to_hashtable(ARMCPU *cpu, const ARMCPRegInfo *r,ARMCPRegInfo *oldreg; oldreg =g_hash_table_lookup (cpu->cp_regs, key);if (oldreg && !(oldreg->type &ARM_CP_OVERRIDE )) { -fprintf (stderr,"Register redefined: cp=%d %d bit " +error_report ("Register redefined: cp=%d %d bit " "crn=%d crm=%d opc1=%d opc2=%d, " -"was %s, now %s\n" , r2->cp,32 +32 * is64, +"was %s, now %s" , r2->cp,32 +32 * is64, r2->crn, r2->crm, r2->opc1, r2->opc2, oldreg->name, r2->name);g_assert_not_reached ();
target/arm/kvm.c +8 -8
@@ -139,7 +139,7 @@ static void kvm_arm_host_cpu_class_init(ObjectClass *oc, void *data)* TCG CPUs. */ if (!kvm_arm_get_host_cpu_features (ahcc)) { -fprintf (stderr,"Failed to retrieve host CPU features!\n" ); +error_report ("Failed to retrieve host CPU features!" );abort (); } }
@@ -256,7 +256,7 @@ static void kvm_arm_set_device_addr(KVMDevice *kd) }if (ret <0 ) { -fprintf (stderr,"Failed to set device address: %s\n" , +error_report ("Failed to set device address: %s" ,strerror (-ret));abort (); }
@@ -352,7 +352,7 @@ int kvm_arm_init_cpreg_list(ARMCPU *cpu)case KVM_REG_SIZE_U64 :break ;default : -fprintf (stderr,"Can't handle size of register in kernel list\n" ); +error_report ("Can't handle size of register in kernel list" ); ret = -EINVAL ; goto out; }
@@ -383,7 +383,7 @@ int kvm_arm_init_cpreg_list(ARMCPU *cpu)/* Shouldn't happen unless kernel is inconsistent about * what registers exist. */ -fprintf (stderr,"Initial read of kernel register state failed\n" ); +error_report ("Initial read of kernel register state failed" ); ret = -EINVAL ; goto out; }
@@ -478,11 +478,11 @@ void kvm_arm_reset_vcpu(ARMCPU *cpu)*/ ret =kvm_arm_vcpu_init (CPU (cpu));if (ret <0 ) { -fprintf (stderr,"kvm_arm_vcpu_init failed: %s\n" ,strerror (-ret)); +error_report ("kvm_arm_vcpu_init failed: %s" ,strerror (-ret));abort (); }if (!write_kvmstate_to_list (cpu)) { -fprintf (stderr,"write_kvmstate_to_list failed\n" ); +error_report ("write_kvmstate_to_list failed" );abort (); } }
@@ -499,7 +499,7 @@ int kvm_arm_sync_mpstate_to_kvm(ARMCPU *cpu) };int ret =kvm_vcpu_ioctl (CPU (cpu),KVM_SET_MP_STATE , &mp_state);if (ret) { -fprintf (stderr,"%s: failed to set MP_STATE %d/%s\n" , +error_report ("%s: failed to set MP_STATE %d/%s" , __func__, ret,strerror (-ret));return -1 ; }
@@ -517,7 +517,7 @@ int kvm_arm_sync_mpstate_to_qemu(ARMCPU *cpu)struct kvm_mp_state mp_state;int ret =kvm_vcpu_ioctl (CPU (cpu),KVM_GET_MP_STATE , &mp_state);if (ret) { -fprintf (stderr,"%s: failed to get MP_STATE %d/%s\n" , +error_report ("%s: failed to get MP_STATE %d/%s" , __func__, ret,strerror (-ret));abort (); }
target/arm/kvm32.c +1 -1
@@ -191,7 +191,7 @@ int kvm_arch_init_vcpu(CPUState *cs)ARMCPU *cpu =ARM_CPU (cs);if (cpu->kvm_target ==QEMU_KVM_ARM_TARGET_NONE ) { -fprintf (stderr,"KVM is not supported for this guest CPU type\n" ); +error_report ("KVM is not supported for this guest CPU type" );return -EINVAL ; }
target/arm/kvm64.c +1 -1
@@ -502,7 +502,7 @@ int kvm_arch_init_vcpu(CPUState *cs)if (cpu->kvm_target ==QEMU_KVM_ARM_TARGET_NONE || !object_dynamic_cast (OBJECT (cpu),TYPE_AARCH64_CPU )) { -fprintf (stderr,"KVM is not supported for this guest CPU type\n" ); +error_report ("KVM is not supported for this guest CPU type" );return -EINVAL ; }
target/arm/translate-a64.c +2 -2
@@ -505,8 +505,8 @@ static inline void assert_fp_access_checked(DisasContext *s) {#ifdef CONFIG_DEBUG_TCG if (unlikely (!s->fp_access_checked || s->fp_excp_el)) { -fprintf (stderr,"target-arm: FP access check missing for " -"instruction 0x%08x\n" , s->insn); +error_report ("target-arm: FP access check missing for " +"instruction 0x%08x" , s->insn);abort (); }#endif
target/arm/translate.c +1 -1
@@ -857,7 +857,7 @@ void arm_test_cc(DisasCompare *cmp, int cc) goto no_invert;default : -fprintf (stderr,"Bad condition code 0x%x\n" , cc); +error_report ("Bad condition code 0x%x" , cc);abort (); }
target/cris/helper.c +1 -1
@@ -282,7 +282,7 @@ hwaddr cris_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)if (!miss) { phy = res.phy; } -D (fprintf (stderr,"%s %x -> %x\n" , __func__, addr, phy)); +D (error_report ("%s %x -> %x" , __func__, addr, phy)); return phy; }#endif
target/cris/translate.c +1 -1
@@ -138,7 +138,7 @@ typedef struct DisasContext {static void gen_BUG (DisasContext *dc,const char *file,int line) { -fprintf (stderr,"BUG: pc=%x %s %d\n" , dc->pc, file, line); +error_report ("BUG: pc=%x %s %d" , dc->pc, file, line);if (qemu_log_separate ()) {qemu_log ("BUG: pc=%x %s %d\n" , dc->pc, file, line); }
target/i386/hax-all.c +26 -26
193 lines not on this page · raw message
target/i386/hax-darwin.c +13 -13
@@ -24,7 +24,7 @@ hax_fd hax_mod_open(void) {int fd =open ("/dev/HAX" ,O_RDWR );if (fd ==-1 ) { -fprintf (stderr,"Failed to open the hax module\n" ); +error_report ("Failed to open the hax module" ); }fcntl (fd,F_SETFD ,FD_CLOEXEC );
@@ -38,7 +38,7 @@ int hax_populate_ram(uint64_t va, uint32_t size)struct hax_alloc_ram_info info;if (!hax_global.vm || !hax_global.vm->fd) { -fprintf (stderr,"Allocate memory before vm create?\n" ); +error_report ("Allocate memory before vm create?" );return -EINVAL ; }
@@ -46,7 +46,7 @@ int hax_populate_ram(uint64_t va, uint32_t size) info.va = va; ret =ioctl (hax_global.vm->fd,HAX_VM_IOCTL_ALLOC_RAM , &info);if (ret <0 ) { -fprintf (stderr,"Failed to allocate %x memory\n" , size); +error_report ("Failed to allocate %x memory" , size);return ret; }return 0 ;
@@ -75,7 +75,7 @@ int hax_capability(struct hax_state *hax, struct hax_capabilityinfo *cap) ret =ioctl (hax->fd,HAX_IOCTL_CAPABILITY , cap);if (ret ==-1 ) { -fprintf (stderr,"Failed to get HAX capability\n" ); +error_report ("Failed to get HAX capability" );return -errno; }
@@ -88,7 +88,7 @@ int hax_mod_version(struct hax_state *hax, struct hax_module_version *version) ret =ioctl (hax->fd,HAX_IOCTL_VERSION , version);if (ret ==-1 ) { -fprintf (stderr,"Failed to get HAX version\n" ); +error_report ("Failed to get HAX version" );return -errno; }
@@ -100,7 +100,7 @@ static char *hax_vm_devfs_string(int vm_id)char *name;if (vm_id >MAX_VM_ID ) { -fprintf (stderr,"Too big VM id\n" ); +error_report ("Too big VM id" );return NULL ; }
@@ -119,7 +119,7 @@ static char *hax_vcpu_devfs_string(int vm_id, int vcpu_id)char *name;if (vm_id >MAX_VM_ID || vcpu_id >MAX_VCPU_ID ) { -fprintf (stderr,"Too big vm id %x or vcpu id %x\n" , vm_id, vcpu_id); +error_report ("Too big vm id %x or vcpu id %x" , vm_id, vcpu_id);return NULL ; }
@@ -181,7 +181,7 @@ int hax_notify_qemu_version(hax_fd vm_fd, struct hax_qemu_version *qversion) ret =ioctl (vm_fd,HAX_VM_IOCTL_NOTIFY_QEMU_VERSION , qversion);if (ret <0 ) { -fprintf (stderr,"Failed to notify qemu API version\n" ); +error_report ("Failed to notify qemu API version" );return ret; }return 0 ;
@@ -196,7 +196,7 @@ int hax_host_create_vcpu(hax_fd vm_fd, int vcpuid) ret =ioctl (vm_fd,HAX_VM_IOCTL_VCPU_CREATE , &vcpuid);if (ret <0 ) { -fprintf (stderr,"Failed to create vcpu %x\n" , vcpuid); +error_report ("Failed to create vcpu %x" , vcpuid); }return ret;
@@ -209,14 +209,14 @@ hax_fd hax_host_open_vcpu(int vmid, int vcpuid) devfs_path =hax_vcpu_devfs_string (vmid, vcpuid);if (!devfs_path) { -fprintf (stderr,"Failed to get the devfs\n" ); +error_report ("Failed to get the devfs" );return -EINVAL ; } fd =open (devfs_path,O_RDWR );g_free (devfs_path);if (fd <0 ) { -fprintf (stderr,"Failed to open the vcpu devfs\n" ); +error_report ("Failed to open the vcpu devfs" ); }fcntl (fd,F_SETFD ,FD_CLOEXEC );return fd;
@@ -229,12 +229,12 @@ int hax_host_setup_vcpu_channel(struct hax_vcpu_state *vcpu) ret =ioctl (vcpu->fd,HAX_VCPU_IOCTL_SETUP_TUNNEL , &info);if (ret) { -fprintf (stderr,"Failed to setup the hax tunnel\n" ); +error_report ("Failed to setup the hax tunnel" );return ret; }if (!valid_hax_tunnel_size (info.size)) { -fprintf (stderr,"Invalid hax tunnel size %x\n" , info.size); +error_report ("Invalid hax tunnel size %x" , info.size); ret = -EINVAL ;return ret; }
target/i386/hax-mem.c +2 -2
@@ -247,8 +247,8 @@ static void hax_transaction_commit(MemoryListener *listener) }if (hax_set_ram (entry->start_pa, entry->size, entry->host_va, entry->flags)) { -fprintf (stderr,"%s: Failed mapping @0x%016" PRIx64"+0x%" - PRIx32" flags %02x\n" , __func__, entry->start_pa, +error_report ("%s: Failed mapping @0x%016" PRIx64"+0x%" + PRIx32" flags %02x" , __func__, entry->start_pa, entry->size, entry->flags); }QTAILQ_REMOVE (&mappings, entry, entry);
target/i386/hax-windows.c +21 -21
156 lines not on this page · raw message
target/i386/kvm.c +19 -19
@@ -219,7 +219,7 @@ static struct kvm_cpuid2 *try_get_cpuid(KVMState *s, int max)g_free (cpuid);return NULL ; }else { -fprintf (stderr,"KVM_GET_SUPPORTED_CPUID failed: %s\n" , +error_report ("KVM_GET_SUPPORTED_CPUID failed: %s" ,strerror (-r));exit (1 ); }
@@ -470,7 +470,7 @@ static void kvm_mce_inject(X86CPU *cpu, hwaddr paddr, int code)static void hardware_memory_error (void ) { -fprintf (stderr,"Hardware memory error!\n" ); +error_report ("Hardware memory error!" );exit (1 ); }
@@ -497,8 +497,8 @@ void kvm_arch_on_sigbus_vcpu(CPUState *c, int code, void *addr)return ; } -fprintf (stderr,"Hardware memory error for memory used by " -"QEMU itself instead of guest system!\n" ); +error_report ("Hardware memory error for memory used by " +"QEMU itself instead of guest system!" ); }if (code ==BUS_MCEERR_AR ) {
@@ -666,7 +666,7 @@ static int hyperv_handle_properties(CPUState *cs)if (!has_msr_hv_synic ||kvm_vcpu_enable_cap (cs,KVM_CAP_HYPERV_SYNIC ,0 )) { -fprintf (stderr,"Hyper-V SynIC is not supported by kernel\n" ); +error_report ("Hyper-V SynIC is not supported by kernel" );return -ENOSYS ; }
@@ -678,7 +678,7 @@ static int hyperv_handle_properties(CPUState *cs) }if (cpu->hyperv_stimer) {if (!has_msr_hv_stimer) { -fprintf (stderr,"Hyper-V timers aren't supported by kernel\n" ); +error_report ("Hyper-V timers aren't supported by kernel" );return -ENOSYS ; } env->features[FEAT_HYPERV_EAX ] |=HV_SYNTIMERS_AVAILABLE ;
@@ -811,7 +811,7 @@ int kvm_arch_init_vcpu(CPUState *cs)for (i =0 ; i <= limit; i++) {if (cpuid_i ==KVM_MAX_CPUID_ENTRIES ) { -fprintf (stderr,"unsupported level value: 0x%x\n" , limit); +error_report ("unsupported level value: 0x%x" , limit);abort (); } c = &cpuid_data.entries[cpuid_i++];
@@ -829,8 +829,8 @@ int kvm_arch_init_vcpu(CPUState *cs)for (j =1 ; j < times; ++j) {if (cpuid_i ==KVM_MAX_CPUID_ENTRIES ) { -fprintf (stderr,"cpuid_data is full, no space for " -"cpuid(eax:2):eax & 0xf = 0x%x\n" , times); +error_report ("cpuid_data is full, no space for " +"cpuid(eax:2):eax & 0xf = 0x%x" , times);abort (); } c = &cpuid_data.entries[cpuid_i++];
@@ -862,8 +862,8 @@ int kvm_arch_init_vcpu(CPUState *cs)continue ; }if (cpuid_i ==KVM_MAX_CPUID_ENTRIES ) { -fprintf (stderr,"cpuid_data is full, no space for " -"cpuid(eax:0x%x,ecx:0x%x)\n" , i, j); +error_report ("cpuid_data is full, no space for " +"cpuid(eax:0x%x,ecx:0x%x)" , i, j);abort (); } c = &cpuid_data.entries[cpuid_i++];
@@ -899,7 +899,7 @@ int kvm_arch_init_vcpu(CPUState *cs)for (i =0x80000000 ; i <= limit; i++) {if (cpuid_i ==KVM_MAX_CPUID_ENTRIES ) { -fprintf (stderr,"unsupported xlevel value: 0x%x\n" , limit); +error_report ("unsupported xlevel value: 0x%x" , limit);abort (); } c = &cpuid_data.entries[cpuid_i++];
@@ -915,7 +915,7 @@ int kvm_arch_init_vcpu(CPUState *cs)for (i =0xC0000000 ; i <= limit; i++) {if (cpuid_i ==KVM_MAX_CPUID_ENTRIES ) { -fprintf (stderr,"unsupported xlevel2 value: 0x%x\n" , limit); +error_report ("unsupported xlevel2 value: 0x%x" , limit);abort (); } c = &cpuid_data.entries[cpuid_i++];
@@ -1245,7 +1245,7 @@ int kvm_arch_init(MachineState *ms, KVMState *s)/* Tell fw_cfg to notify the BIOS to reserve the range. */ ret =e820_add_entry (identity_base,0x4000 ,E820_RESERVED );if (ret <0 ) { -fprintf (stderr,"e820_add_entry() table is full\n" ); +error_report ("e820_add_entry() table is full" );return ret; }qemu_register_reset (kvm_unpoison_all,NULL );
@@ -2733,7 +2733,7 @@ void kvm_arch_pre_run(CPUState *cpu, struct kvm_run *run)DPRINTF ("injected NMI\n" ); ret =kvm_vcpu_ioctl (cpu,KVM_NMI );if (ret <0 ) { -fprintf (stderr,"KVM: injection failed, NMI lost (%s)\n" , +error_report ("KVM: injection failed, NMI lost (%s)" ,strerror (-ret)); } }
@@ -2744,7 +2744,7 @@ void kvm_arch_pre_run(CPUState *cpu, struct kvm_run *run)DPRINTF ("injected SMI\n" ); ret =kvm_vcpu_ioctl (cpu,KVM_SMI );if (ret <0 ) { -fprintf (stderr,"KVM: injection failed, SMI lost (%s)\n" , +error_report ("KVM: injection failed, SMI lost (%s)" ,strerror (-ret)); } }
@@ -3141,7 +3141,7 @@ int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run)break ;case KVM_EXIT_FAIL_ENTRY : code = run->fail_entry.hardware_entry_failure_reason; -fprintf (stderr,"KVM: entry failed, hardware error 0x%" PRIx64"\n" , +error_report ("KVM: entry failed, hardware error 0x%" PRIx64"" , code);if (host_supports_vmx () && code ==VMX_INVALID_GUEST_STATE ) { fprintf(stderr,
@@ -3157,7 +3157,7 @@ int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run) ret =-1 ;break ;case KVM_EXIT_EXCEPTION : -fprintf (stderr,"KVM: exception %d exit (error code 0x%x)\n" , +error_report ("KVM: exception %d exit (error code 0x%x)" , run->ex.exception, run->ex.error_code); ret =-1 ;break ;
@@ -3175,7 +3175,7 @@ int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run) ret =0 ;break ;default : -fprintf (stderr,"KVM: unknown exit reason %d\n" , run->exit_reason); +error_report ("KVM: unknown exit reason %d" , run->exit_reason); ret =-1 ;break ; }
target/i386/misc_helper.c +6 -6
@@ -28,7 +28,7 @@void helper_outb (CPUX86State *env,uint32_t port,uint32_t data) {#ifdef CONFIG_USER_ONLY -fprintf (stderr,"outb: port=0x%04x, data=%02x\n" , port, data); +error_report ("outb: port=0x%04x, data=%02x" , port, data);#else address_space_stb (&address_space_io, port, data,cpu_get_mem_attrs (env),NULL );
@@ -38,7 +38,7 @@ void helper_outb(CPUX86State *env, uint32_t port, uint32_t data)target_ulong helper_inb (CPUX86State *env,uint32_t port) {#ifdef CONFIG_USER_ONLY -fprintf (stderr,"inb: port=0x%04x\n" , port); +error_report ("inb: port=0x%04x" , port);return 0 ;#else return address_space_ldub(&address_space_io, port,
@@ -49,7 +49,7 @@ target_ulong helper_inb(CPUX86State *env, uint32_t port)void helper_outw (CPUX86State *env,uint32_t port,uint32_t data) {#ifdef CONFIG_USER_ONLY -fprintf (stderr,"outw: port=0x%04x, data=%04x\n" , port, data); +error_report ("outw: port=0x%04x, data=%04x" , port, data);#else address_space_stw (&address_space_io, port, data,cpu_get_mem_attrs (env),NULL );
@@ -59,7 +59,7 @@ void helper_outw(CPUX86State *env, uint32_t port, uint32_t data)target_ulong helper_inw (CPUX86State *env,uint32_t port) {#ifdef CONFIG_USER_ONLY -fprintf (stderr,"inw: port=0x%04x\n" , port); +error_report ("inw: port=0x%04x" , port);return 0 ;#else return address_space_lduw(&address_space_io, port,
@@ -70,7 +70,7 @@ target_ulong helper_inw(CPUX86State *env, uint32_t port)void helper_outl (CPUX86State *env,uint32_t port,uint32_t data) {#ifdef CONFIG_USER_ONLY -fprintf (stderr,"outw: port=0x%04x, data=%08x\n" , port, data); +error_report ("outw: port=0x%04x, data=%08x" , port, data);#else address_space_stl (&address_space_io, port, data,cpu_get_mem_attrs (env),NULL );
@@ -80,7 +80,7 @@ void helper_outl(CPUX86State *env, uint32_t port, uint32_t data)target_ulong helper_inl (CPUX86State *env,uint32_t port) {#ifdef CONFIG_USER_ONLY -fprintf (stderr,"inl: port=0x%04x\n" , port); +error_report ("inl: port=0x%04x" , port);return 0 ;#else return address_space_ldl(&address_space_io, port,
target/lm32/op_helper.c +2 -2
@@ -40,9 +40,9 @@ void HELPER(ill)(CPULM32State *env) {#ifndef CONFIG_USER_ONLY CPUState *cs =CPU (lm32_env_get_cpu (env)); -fprintf (stderr,"VM paused due to illegal instruction. " +error_report ("VM paused due to illegal instruction. " "Connect a debugger or switch to the monitor console " -"to find out more.\n" ); +"to find out more." );vm_stop (RUN_STATE_PAUSED ); cs->halted =1 ;raise_exception (env,EXCP_HALTED );
target/mips/mips-semi.c +2 -1
@@ -18,6 +18,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "cpu.h" #include "qemu/log.h" #include "exec/helper-proto.h"
@@ -366,7 +367,7 @@ void helper_do_semihosting(CPUMIPSState *env)break ;#endif default : -fprintf (stderr,"Unknown UHI operation %d\n" , op); +error_report ("Unknown UHI operation %d" , op);abort (); } uhi_done:
target/mips/translate.c +1 -1
@@ -10886,7 +10886,7 @@ static void gen_branch(DisasContext *ctx, int insn_bytes)tcg_gen_lookup_and_goto_ptr (cpu_PC);break ;default : -fprintf (stderr,"unknown branch 0x%x\n" , proc_hflags); +error_report ("unknown branch 0x%x" , proc_hflags);abort (); } }
target/ppc/excp_helper.c +2 -2
@@ -200,8 +200,8 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int excp_model, int excp)/* Machine check exception is not enabled. * Enter checkstop state. */ -fprintf (stderr,"Machine check while not allowed. " -"Entering checkstop state\n" ); +error_report ("Machine check while not allowed. " +"Entering checkstop state" );if (qemu_log_separate ()) {qemu_log ("Machine check while not allowed. " "Entering checkstop state\n" );
target/ppc/kvm.c +18 -18
@@ -159,8 +159,8 @@ int kvm_arch_init(MachineState *ms, KVMState *s) cap_ppc_pvr_compat = false;if (!cap_interrupt_level) { -fprintf (stderr,"KVM: Couldn't find level irq capability. Expect the " -"VM to stall at times!\n" ); +error_report ("KVM: Couldn't find level irq capability. Expect the " +"VM to stall at times!" ); }kvm_ppc_register_host_cpu_type ();
@@ -188,7 +188,7 @@ static int kvm_arch_sync_sregs(PowerPCCPU *cpu)return 0 ; }else {if (!cap_segstate) { -fprintf (stderr,"kvm error: missing PVR setting capability\n" ); +error_report ("kvm error: missing PVR setting capability" );return -ENOSYS ; } }
@@ -237,7 +237,7 @@ static int kvm_booke206_tlb_init(PowerPCCPU *cpu) ret =kvm_vcpu_enable_cap (cs,KVM_CAP_SW_TLB ,0 , (uintptr_t )&cfg);if (ret <0 ) { -fprintf (stderr,"%s: couldn't enable KVM_CAP_SW_TLB: %s\n" , +error_report ("%s: couldn't enable KVM_CAP_SW_TLB: %s" , __func__,strerror (-ret));return ret; }
@@ -552,7 +552,7 @@ static void kvmppc_hw_debug_points_init(CPUPPCState *cenv) }if ((max_hw_breakpoint + max_hw_watchpoint) >MAX_HW_BKPTS ) { -fprintf (stderr,"Error initializing h/w breakpoints\n" ); +error_report ("Error initializing h/w breakpoints" );return ; } }
@@ -623,7 +623,7 @@ static void kvm_sw_tlb_put(PowerPCCPU *cpu) ret =kvm_vcpu_ioctl (cs,KVM_DIRTY_TLB , &dirty_tlb);if (ret) { -fprintf (stderr,"%s: KVM_DIRTY_TLB: %s\n" , +error_report ("%s: KVM_DIRTY_TLB: %s" , __func__,strerror (-ret)); }
@@ -1474,7 +1474,7 @@ static int kvmppc_handle_halt(PowerPCCPU *cpu)static int kvmppc_handle_dcr_read (CPUPPCState *env,uint32_t dcrn,uint32_t *data) {if (ppc_dcr_read (env->dcr_env, dcrn, data) <0 ) -fprintf (stderr,"Read to unhandled DCR (0x%x)\n" , dcrn); +error_report ("Read to unhandled DCR (0x%x)" , dcrn);return 0 ; }
@@ -1482,7 +1482,7 @@ static int kvmppc_handle_dcr_read(CPUPPCState *env, uint32_t dcrn, uint32_t *datstatic int kvmppc_handle_dcr_write (CPUPPCState *env,uint32_t dcrn,uint32_t data) {if (ppc_dcr_write (env->dcr_env, dcrn, data) <0 ) -fprintf (stderr,"Write to unhandled DCR (0x%x)\n" , dcrn); +error_report ("Write to unhandled DCR (0x%x)" , dcrn);return 0 ; }
@@ -1793,7 +1793,7 @@ int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run)break ;default : -fprintf (stderr,"KVM: unknown exit reason %d\n" , run->exit_reason); +error_report ("KVM: unknown exit reason %d" , run->exit_reason); ret =-1 ;break ; }
@@ -1857,7 +1857,7 @@ int kvmppc_booke_watchdog_enable(PowerPCCPU *cpu) ret =kvm_vcpu_enable_cap (cs,KVM_CAP_PPC_BOOKE_WATCHDOG ,0 );if (ret <0 ) { -fprintf (stderr,"%s: couldn't enable KVM_CAP_PPC_BOOKE_WATCHDOG: %s\n" , +error_report ("%s: couldn't enable KVM_CAP_PPC_BOOKE_WATCHDOG: %s" , __func__,strerror (-ret));return ret; }
@@ -2192,7 +2192,7 @@ off_t kvmppc_alloc_rma(void **rma) fd =kvm_vm_ioctl (kvm_state,KVM_ALLOCATE_RMA , &ret);if (fd <0 ) { -fprintf (stderr,"KVM: Error on KVM_ALLOCATE_RMA: %s\n" , +error_report ("KVM: Error on KVM_ALLOCATE_RMA: %s" ,strerror (errno));return -1 ; }
@@ -2201,7 +2201,7 @@ off_t kvmppc_alloc_rma(void **rma) *rma =mmap (NULL , size,PROT_READ |PROT_WRITE ,MAP_SHARED , fd,0 );if (*rma ==MAP_FAILED ) { -fprintf (stderr,"KVM: Error mapping RMA: %s\n" ,strerror (errno)); +error_report ("KVM: Error mapping RMA: %s" ,strerror (errno));return -1 ; };
@@ -2303,7 +2303,7 @@ void *kvmppc_create_spapr_tce(uint32_t liobn, uint32_t page_shift, } fd =kvm_vm_ioctl (kvm_state,KVM_CREATE_SPAPR_TCE , &args);if (fd <0 ) { -fprintf (stderr,"KVM: Failed to create TCE table for liobn 0x%x\n" , +error_report ("KVM: Failed to create TCE table for liobn 0x%x" , liobn);return NULL ; }
@@ -2316,7 +2316,7 @@ void *kvmppc_create_spapr_tce(uint32_t liobn, uint32_t page_shift, table =mmap (NULL , len,PROT_READ |PROT_WRITE ,MAP_SHARED , fd,0 );if (table ==MAP_FAILED ) { -fprintf (stderr,"KVM: Failed to map TCE table for liobn 0x%x\n" , +error_report ("KVM: Failed to map TCE table for liobn 0x%x" , liobn);close (fd);return NULL ;
@@ -2563,7 +2563,7 @@ int kvmppc_get_htab_fd(bool write) };if (!cap_htab_fd) { -fprintf (stderr,"KVM version doesn't support saving the hash table\n" ); +error_report ("KVM version doesn't support saving the hash table" );return -1 ; }
@@ -2579,7 +2579,7 @@ int kvmppc_save_htab(QEMUFile *f, int fd, size_t bufsize, int64_t max_ns) do { rc = read(fd, buf, bufsize); if (rc < 0) { - fprintf(stderr, "Error reading data from KVM HTAB fd: %s\n", + error_report("Error reading data from KVM HTAB fd: %s", strerror(errno)); return rc; } else if (rc) {
@@ -2624,13 +2624,13 @@ int kvmppc_load_htab_chunk(QEMUFile *f, int fd, uint32_t index, rc =write (fd, buf, chunksize);if (rc <0 ) { -fprintf (stderr,"Error writing KVM hash table: %s\n" , +error_report ("Error writing KVM hash table: %s" ,strerror (errno));return rc; }if (rc != chunksize) {/* We should never get a short write on a single chunk */ -fprintf (stderr,"Short write, restoring KVM hash table\n" ); +error_report ("Short write, restoring KVM hash table" );return -1 ; }return 0 ;
target/ppc/mmu-hash64.c +1 -1
@@ -377,7 +377,7 @@ static int ppc_hash64_amr_prot(PowerPCCPU *cpu, ppc_hash_pte64_t pte) key =HPTE64_R_KEY (pte.pte1); amrbits = (env->spr[SPR_AMR ] >>2 *(31 - key)) &0x3 ; -/* fprintf(stderr, "AMR protection: key=%d AMR=0x%" PRIx64 "\n", key, */ +/* error_report("AMR protection: key=%d AMR=0x%" PRIx64 "", key, */ /* env->spr[SPR_AMR]); */ /*
target/ppc/mmu_helper.c +1 -1
@@ -2600,7 +2600,7 @@ void helper_booke206_tlbwe(CPUPPCState *env)if (((env->spr[SPR_BOOKE_MAS0 ] &MAS0_ATSEL ) ==MAS0_ATSEL_LRAT ) && !msr_gs) {/* XXX we don't support direct LRAT setting yet */ -fprintf (stderr,"cpu: don't support LRAT setting yet\n" ); +error_report ("cpu: don't support LRAT setting yet" );return ; }
target/ppc/translate.c +10 -10
@@ -3943,8 +3943,8 @@ static inline void gen_op_mfspr(DisasContext *ctx)* allowing userland application to read the PVR */ if (sprn !=SPR_PVR ) { -fprintf (stderr,"Trying to read privileged spr %d (0x%03x) at " - TARGET_FMT_lx"\n" , sprn, sprn, ctx->nip -4 ); +error_report ("Trying to read privileged spr %d (0x%03x) at " + TARGET_FMT_lx"" , sprn, sprn, ctx->nip -4 );if (qemu_log_separate ()) {qemu_log ("Trying to read privileged spr %d (0x%03x) at " TARGET_FMT_lx"\n" , sprn, sprn, ctx->nip -4 );
@@ -3960,8 +3960,8 @@ static inline void gen_op_mfspr(DisasContext *ctx)return ; }/* Not defined */ -fprintf (stderr,"Trying to read invalid spr %d (0x%03x) at " - TARGET_FMT_lx"\n" , sprn, sprn, ctx->nip -4 ); +error_report ("Trying to read invalid spr %d (0x%03x) at " + TARGET_FMT_lx"" , sprn, sprn, ctx->nip -4 );if (qemu_log_separate ()) {qemu_log ("Trying to read invalid spr %d (0x%03x) at " TARGET_FMT_lx"\n" , sprn, sprn, ctx->nip -4 );
@@ -4106,8 +4106,8 @@ static void gen_mtspr(DisasContext *ctx) (*write_cb)(ctx, sprn,rS (ctx->opcode)); }else {/* Privilege exception */ -fprintf (stderr,"Trying to write privileged spr %d (0x%03x) at " - TARGET_FMT_lx"\n" , sprn, sprn, ctx->nip -4 ); +error_report ("Trying to write privileged spr %d (0x%03x) at " + TARGET_FMT_lx"" , sprn, sprn, ctx->nip -4 );if (qemu_log_separate ()) {qemu_log ("Trying to write privileged spr %d (0x%03x) at " TARGET_FMT_lx"\n" , sprn, sprn, ctx->nip -4 );
@@ -4127,8 +4127,8 @@ static void gen_mtspr(DisasContext *ctx)qemu_log ("Trying to write invalid spr %d (0x%03x) at " TARGET_FMT_lx"\n" , sprn, sprn, ctx->nip -4 ); } -fprintf (stderr,"Trying to write invalid spr %d (0x%03x) at " - TARGET_FMT_lx"\n" , sprn, sprn, ctx->nip -4 ); +error_report ("Trying to write invalid spr %d (0x%03x) at " + TARGET_FMT_lx"" , sprn, sprn, ctx->nip -4 );/* The behaviour depends on MSR:PR and SPR# bit 0x10,
@@ -7370,8 +7370,8 @@ void gen_intermediate_code(CPUState *cs, struct TranslationBlock *tb)break ; }if (tcg_check_temp_count ()) { -fprintf (stderr,"Opcode %02x %02x %02x %02x (%08x) leaked " -"temporaries\n" ,opc1 (ctx.opcode),opc2 (ctx.opcode), +error_report ("Opcode %02x %02x %02x %02x (%08x) leaked " +"temporaries" ,opc1 (ctx.opcode),opc2 (ctx.opcode),opc3 (ctx.opcode),opc4 (ctx.opcode), ctx.opcode);exit (1 ); }
target/ppc/translate_init.c +27 -26
114 lines not on this page · raw message
target/s390x/kvm.c +10 -10
@@ -967,13 +967,13 @@ static void inject_vcpu_irq_legacy(CPUState *cs, struct kvm_s390_irq *irq) r =s390_kvm_irq_to_interrupt (irq, &kvmint);if (r <0 ) { -fprintf (stderr,"%s called with bogus interrupt\n" , __func__); +error_report ("%s called with bogus interrupt" , __func__);exit (1 ); } r =kvm_vcpu_ioctl (cs,KVM_S390_INTERRUPT , &kvmint);if (r <0 ) { -fprintf (stderr,"KVM failed to inject interrupt\n" ); +error_report ("KVM failed to inject interrupt" );exit (1 ); } }
@@ -1002,13 +1002,13 @@ static void __kvm_s390_floating_interrupt(struct kvm_s390_irq *irq) r =s390_kvm_irq_to_interrupt (irq, &kvmint);if (r <0 ) { -fprintf (stderr,"%s called with bogus interrupt\n" , __func__); +error_report ("%s called with bogus interrupt" , __func__);exit (1 ); } r =kvm_vm_ioctl (kvm_state,KVM_S390_INTERRUPT , &kvmint);if (r <0 ) { -fprintf (stderr,"KVM failed to inject interrupt\n" ); +error_report ("KVM failed to inject interrupt" );exit (1 ); } }
@@ -1116,14 +1116,14 @@ static int handle_b2(S390CPU *cpu, struct kvm_run *run, uint8_t ipa1)break ;case PRIV_B2_TSCH :/* We should only get tsch via KVM_EXIT_S390_TSCH. */ -fprintf (stderr,"Spurious tsch intercept\n" ); +error_report ("Spurious tsch intercept" );break ;case PRIV_B2_CHSC :ioinst_handle_chsc (cpu, run->s390_sieic.ipb);break ;case PRIV_B2_TPI :/* This should have been handled by kvm already. */ -fprintf (stderr,"Spurious tpi intercept\n" ); +error_report ("Spurious tpi intercept" );break ;case PRIV_B2_SCHM : ioinst_handle_schm(cpu, env->regs[1], env->regs[2],
@@ -2050,15 +2050,15 @@ static int handle_intercept(S390CPU *cpu) }break ;case ICPT_SOFT_INTERCEPT : -fprintf (stderr,"KVM unimplemented icpt SOFT\n" ); +error_report ("KVM unimplemented icpt SOFT" );exit (1 );break ;case ICPT_IO : -fprintf (stderr,"KVM unimplemented icpt IO\n" ); +error_report ("KVM unimplemented icpt IO" );exit (1 );break ;default : -fprintf (stderr,"Unknown intercept code: %d\n" , icpt_code); +error_report ("Unknown intercept code: %d" , icpt_code);exit (1 );break ; }
@@ -2215,7 +2215,7 @@ int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run) ret =kvm_arch_handle_debug_exit (cpu);break ;default : -fprintf (stderr,"Unknown KVM exit: %d\n" , run->exit_reason); +error_report ("Unknown KVM exit: %d" , run->exit_reason);break ; }qemu_mutex_unlock_iothread ();
target/s390x/misc_helper.c +1 -1
@@ -354,7 +354,7 @@ uint32_t HELPER(sigp)(CPUS390XState *env, uint64_t order_code, uint32_t r1,#endif default :/* unknown sigp */ -fprintf (stderr,"XXX unknown sigp: 0x%" PRIx64"\n" , order_code); +error_report ("XXX unknown sigp: 0x%" PRIx64"" , order_code); cc =SIGP_CC_NOT_OPERATIONAL ; }
target/sh4/translate.c +2 -2
@@ -438,7 +438,7 @@ static void _decode_opc(DisasContext * ctx) }#if 0 -fprintf (stderr,"Translating opcode 0x%04x\n" , ctx->opcode); +error_report ("Translating opcode 0x%04x" , ctx->opcode);#endif switch (ctx->opcode) {
@@ -1799,7 +1799,7 @@ static void _decode_opc(DisasContext * ctx)break ; }#if 0 -fprintf (stderr,"unknown instruction 0x%04x at pc 0x%08x\n" , +error_report ("unknown instruction 0x%04x at pc 0x%08x" , ctx->opcode, ctx->pc);fflush (stderr);#endif
target/unicore32/translate.c +2 -2
@@ -515,7 +515,7 @@ static void gen_test_cc(int cc, TCGLabel *label)tcg_gen_brcondi_i32 (TCG_COND_LT , tmp,0 , label);break ;default : -fprintf (stderr,"Bad condition code 0x%x\n" , cc); +error_report ("Bad condition code 0x%x" , cc);abort (); }dead_tmp (tmp);
@@ -1940,7 +1940,7 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock *tb)disas_uc32_insn (env, dc);if (num_temps) { -fprintf (stderr,"Internal resource leak before %08x\n" , dc->pc); +error_report ("Internal resource leak before %08x" , dc->pc); num_temps =0 ; }
Signature · 1 line
2.11.0
PATCH 2/8 tests: Replace fprintf(stderr, "*\n" with error_report()
In reply to Alistair FrancisReplace 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}' \
{} +---
tests/Makefile.include | 4 ++-- tests/ahci-test.c | 3 ++- tests/atomic_add-bench.c | 2 +- tests/bios-tables-test.c | 5 +++-- tests/check-qlit | Bin 0 -> 272776 bytes tests/i440fx-test.c | 8 ++++---- tests/libqos/ahci.c | 10 ++++----- tests/libqos/libqos.c | 7 ++++--- tests/libqos/malloc.c | 13 ++++++------ tests/libqtest.c | 13 ++++++------ tests/migration/stress.c | 36 ++++++++++++++++----------------- tests/postcopy-test.c | 8 ++++---- tests/qemu-iotests/socket_scm_helper.c | 11 +++++----- tests/qht-bench.c | 5 +++-- tests/rcutorture.c | 5 +++-- tests/tcg/linux-test.c | 2 +- tests/tcg/runcom.c | 6 +++--- tests/tcg/test-i386-fprem.c | 2 +- tests/tcg/test_path.c | 4 ++-- tests/test-hmp.c | 5 +++-- tests/test-rcu-list.c | 5 +++-- tests/usb-hcd-ehci-test.c | 2 +- tests/vhost-user-bridge.c | 28 ++++++++++++------------- 23 files changed, 97 insertions(+), 87 deletions(-) create mode 100755 tests/check-qlit
tests/Makefile.include +2 -2
@@ -618,7 +618,7 @@ tests/test-vmstate$(EXESUF): tests/test-vmstate.o \ $(test-io-obj-y) tests/test-timed-average$(EXESUF): tests/test-timed-average.o $(test-util-obj-y) tests/test-base64$(EXESUF): tests/test-base64.o $(test-util-obj-y) -tests/ptimer-test$(EXESUF): tests/ptimer-test.o tests/ptimer-test-stubs.o hw/core/ptimer.o +tests/ptimer-test$(EXESUF): tests/ptimer-test.o tests/ptimer-test-stubs.o hw/core/ptimer.o $(test-util-obj-y) tests/test-logging$(EXESUF): tests/test-logging.o $(test-util-obj-y)
@@ -785,7 +785,7 @@ tests/postcopy-test$(EXESUF): tests/postcopy-test.o tests/vhost-user-test$(EXESUF): tests/vhost-user-test.o $(test-util-obj-y) \ $(qtest-obj-y) $(test-io-obj-y) $(libqos-virtio-obj-y) $(libqos-pc-obj-y) \ $(chardev-obj-y) -tests/qemu-iotests/socket_scm_helper$(EXESUF): tests/qemu-iotests/socket_scm_helper.o +tests/qemu-iotests/socket_scm_helper$(EXESUF): tests/qemu-iotests/socket_scm_helper.o $(test-util-obj-y) tests/test-qemu-opts$(EXESUF): tests/test-qemu-opts.o $(test-util-obj-y) tests/test-keyval$(EXESUF): tests/test-keyval.o $(test-util-obj-y) $(test-qapi-obj-y) tests/test-write-threshold$(EXESUF): tests/test-write-threshold.o $(test-block-obj-y)
tests/ahci-test.c +2 -1
@@ -23,6 +23,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include <getopt.h> #include "libqtest.h"
@@ -1859,7 +1860,7 @@ int main(int argc, char **argv) ahci_pedantic =1 ;break ;default : -fprintf (stderr,"Unrecognized ahci_test option.\n" ); +error_report ("Unrecognized ahci_test option." );g_assert_not_reached (); } }
tests/atomic_add-bench.c +1 -1
@@ -29,7 +29,7 @@ static const char commands_string[] =static void usage_complete (char *argv[]) {fprintf (stderr,"Usage: %s [options]\n" , argv[0 ]); -fprintf (stderr,"options:\n%s\n" , commands_string); +fprintf (stderr,"options:\n%s" , commands_string); }/*
tests/bios-tables-test.c +3 -2
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include <glib/gstdio.h> #include "qemu-common.h" #include "hw/smbios/smbios.h"
@@ -396,7 +397,7 @@ try_again: aml_file =g_strdup_printf ("%s/%s/%.4s%s" , data_dir, data->machine, (gchar *)&signature, ext);if (getenv ("V" )) { -fprintf (stderr,"\nLooking for expected file '%s'\n" , aml_file); +error_report ("Looking for expected file '%s'" , aml_file); }if (g_file_test (aml_file,G_FILE_TEST_EXISTS )) { exp_sdt.aml_file = aml_file;
@@ -408,7 +409,7 @@ try_again: }g_assert (exp_sdt.aml_file);if (getenv ("V" )) { -fprintf (stderr,"\nUsing expected file '%s'\n" , aml_file); +error_report ("Using expected file '%s'" , aml_file); } ret =g_file_get_contents (aml_file, &exp_sdt.aml, &exp_sdt.aml_len, &error);
tests/check-qlit new file binary +0 -0
tests/i440fx-test.c +4 -4
@@ -13,7 +13,7 @@*/ #include "qemu/osdep.h" - +#include "qemu/error-report.h" #include "libqtest.h" #include "libqos/pci.h" #include "libqos/pci-pc.h"
@@ -295,18 +295,18 @@ static char *create_blob_file(void) ret =-1 ; fd =g_file_open_tmp ("blob_XXXXXX" , &pathname, &error);if (fd ==-1 ) { -fprintf (stderr,"unable to create blob file: %s\n" , error->message); +error_report ("unable to create blob file: %s" , error->message);g_error_free (error); }else {if (ftruncate (fd,BLOB_SIZE ) ==-1 ) { -fprintf (stderr,"ftruncate(\"%s\", %zu): %s\n" , pathname, +error_report ("ftruncate(\"%s\", %zu): %s" , pathname,BLOB_SIZE ,strerror (errno)); }else {void *buf; buf =mmap (NULL ,BLOB_SIZE ,PROT_WRITE ,MAP_SHARED , fd,0 );if (buf ==MAP_FAILED ) { -fprintf (stderr,"mmap(\"%s\", %zu): %s\n" , pathname,BLOB_SIZE , +error_report ("mmap(\"%s\", %zu): %s" , pathname,BLOB_SIZE ,strerror (errno)); }else {size_t i;
tests/libqos/ahci.c +5 -5
@@ -23,7 +23,7 @@*/ #include "qemu/osdep.h" - +#include "qemu/error-report.h" #include "libqtest.h" #include "libqos/ahci.h" #include "libqos/pci-pc.h"
@@ -985,9 +985,9 @@ static void ahci_atapi_command_set_offset(AHCICommand *cmd, uint64_t lba)default :/* SCSI doesn't have uniform packet formats, * so you have to add support for it manually. Sorry! */ -fprintf (stderr,"The Libqos AHCI driver does not support the " +error_report ("The Libqos AHCI driver does not support the " "set_offset operation for ATAPI command 0x%02x, " -"please add support.\n" , +"please add support." , cbd[0 ]);g_assert_not_reached (); }
@@ -1060,8 +1060,8 @@ static void ahci_atapi_set_size(AHCICommand *cmd, uint64_t xbytes)default :/* SCSI doesn't have uniform packet formats, * so you have to add support for it manually. Sorry! */ -fprintf (stderr,"The Libqos AHCI driver does not support the set_size " -"operation for ATAPI command 0x%02x, please add support.\n" , +error_report ("The Libqos AHCI driver does not support the set_size " +"operation for ATAPI command 0x%02x, please add support." , cbd[0 ]);g_assert_not_reached (); }
tests/libqos/libqos.c +4 -3
@@ -1,4 +1,5 @@#include "qemu/osdep.h" +#include "qemu/error-report.h" #include <sys/wait.h> #include "libqtest.h"
@@ -155,7 +156,7 @@ void migrate(QOSState *from, QOSState *to, const char *uri)continue ; } -fprintf (stderr,"Migration did not complete, status: %s\n" , st); +error_report ("Migration did not complete, status: %s" , st);g_assert_not_reached (); }
@@ -199,7 +200,7 @@ void mkimg(const char *file, const char *fmt, unsigned size_mb) fmt, file, size_mb); ret =g_spawn_command_line_sync (cli, &out, &out2, &rc, &err);if (err) { -fprintf (stderr,"%s\n" , err->message); +error_report ("%s" , err->message);g_error_free (err); }g_assert (ret && !err);
@@ -210,7 +211,7 @@ void mkimg(const char *file, const char *fmt, unsigned size_mb)* 0 is only possible if the program exited normally, so that should be * sufficient for our purposes on all platforms, here. */ if (rc) { -fprintf (stderr,"qemu-img returned status code %d\n" , rc); +error_report ("qemu-img returned status code %d" , rc); }g_assert (!rc);
tests/libqos/malloc.c +7 -6
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "libqos/malloc.h" #include "qemu-common.h" #include "qemu/host-utils.h"
@@ -193,7 +194,7 @@ static uint64_t mlist_alloc(QGuestAllocator *s, uint64_t size) node =mlist_find_space (s->free, size);if (!node) { -fprintf (stderr,"Out of guest memory.\n" ); +error_report ("Out of guest memory." );g_assert_not_reached (); }return mlist_fulfill (s, node, size);
@@ -209,8 +210,8 @@ static void mlist_free(QGuestAllocator *s, uint64_t addr) node =mlist_find_key (s->used, addr);if (!node) { -fprintf (stderr,"Error: no record found for an allocation at " -"0x%016" PRIx64".\n" , +error_report ("Error: no record found for an allocation at " +"0x%016" PRIx64"." , addr);g_assert_not_reached (); }
@@ -234,8 +235,8 @@ void alloc_uninit(QGuestAllocator *allocator)/* Check for guest leaks, and destroy the list. */ QTAILQ_FOREACH_SAFE(node, allocator->used, MLIST_ENTNAME, tmp) {if (allocator->opts & (ALLOC_LEAK_WARN |ALLOC_LEAK_ASSERT )) { -fprintf (stderr,"guest malloc leak @ 0x%016" PRIx64"; " -"size 0x%016" PRIx64".\n" , +error_report ("guest malloc leak @ 0x%016" PRIx64"; " +"size 0x%016" PRIx64"." , node->addr, node->size); }if (allocator->opts & (ALLOC_LEAK_ASSERT )) {
@@ -251,7 +252,7 @@ void alloc_uninit(QGuestAllocator *allocator)if ((allocator->opts & mask) == mask) {if ((node->addr != allocator->start) || (node->size != allocator->end - allocator->start)) { -fprintf (stderr,"Free list is corrupted.\n" ); +error_report ("Free list is corrupted." );g_assert_not_reached (); } }
tests/libqtest.c +7 -6
@@ -15,6 +15,7 @@* */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "libqtest.h" #include <sys/socket.h>
@@ -89,7 +90,7 @@ static int socket_accept(int sock) ret =accept (sock, (struct sockaddr *)&addr, &addrlen); }while (ret ==-1 && errno ==EINTR );if (ret ==-1 ) { -fprintf (stderr,"%s failed: %s\n" , __func__,strerror (errno)); +error_report ("%s failed: %s" , __func__,strerror (errno)); }close (sock);
@@ -155,7 +156,7 @@ static const char *qtest_qemu_binary(void) qemu_bin =getenv ("QTEST_QEMU_BINARY" );if (!qemu_bin) { -fprintf (stderr,"Environment variable QTEST_QEMU_BINARY required\n" ); +error_report ("Environment variable QTEST_QEMU_BINARY required" );exit (1 ); }
@@ -312,7 +313,7 @@ static GString *qtest_recv_line(QTestState *s) }if (len ==-1 || len ==0 ) { -fprintf (stderr,"Broken pipe\n" ); +error_report ("Broken pipe" );exit (1 ); }
@@ -397,7 +398,7 @@ static void qmp_response(JSONMessageParser *parser, GQueue *tokens) obj =json_parser_parse (tokens,NULL );if (!obj) { -fprintf (stderr,"QMP JSON response parsing failed\n" ); +error_report ("QMP JSON response parsing failed" );exit (1 ); }
@@ -423,7 +424,7 @@ QDict *qmp_fd_receive(int fd) }if (len ==-1 || len ==0 ) { -fprintf (stderr,"Broken pipe\n" ); +error_report ("Broken pipe" );exit (1 ); }
@@ -880,7 +881,7 @@ void qtest_bufread(QTestState *s, uint64_t addr, void *data, size_t size)g_base64_decode_inplace (args[1 ], &len);if (size != len) { -fprintf (stderr,"bufread: asked for %zu bytes but decoded %zu\n" , +error_report ("bufread: asked for %zu bytes but decoded %zu" , size, len); len =MIN (len, size); }
tests/migration/stress.c +18 -18
@@ -47,7 +47,7 @@ static __attribute__((noreturn)) void exit_failure(void)if (getpid () ==1 ) {sync ();reboot (RB_POWER_OFF ); -fprintf (stderr,"%s (%05d): ERROR: cannot reboot: %s\n" , +error_report ("%s (%05d): cannot reboot: %s" , argv0,gettid (),strerror (errno));abort (); }else {
@@ -60,7 +60,7 @@ static __attribute__((noreturn)) void exit_success(void)if (getpid () ==1 ) {sync ();reboot (RB_POWER_OFF ); -fprintf (stderr,"%s (%05d): ERROR: cannot reboot: %s\n" , +error_report ("%s (%05d): cannot reboot: %s" , argv0,gettid (),strerror (errno));abort (); }else {
@@ -76,13 +76,13 @@ static int get_command_arg_str(const char *name,char *start, *end;if (fp ==NULL ) { -fprintf (stderr,"%s (%05d): ERROR: cannot open /proc/cmdline: %s\n" , +error_report ("%s (%05d): cannot open /proc/cmdline: %s" , argv0,gettid (),strerror (errno));return -1 ; }if (!fgets (line,sizeof line, fp)) { -fprintf (stderr,"%s (%05d): ERROR: cannot read /proc/cmdline: %s\n" , +error_report ("%s (%05d): cannot read /proc/cmdline: %s" , argv0,gettid (),strerror (errno));fclose (fp);return -1 ;
@@ -96,8 +96,8 @@ static int get_command_arg_str(const char *name, start +=strlen (name);if (*start !='=' ) { -fprintf (stderr,"%s (%05d): ERROR: no value provided for '%s' in /proc/cmdline\n" , - argv0,gettid (), name); +error_report ("%s (%05d): no value provided for '%s' in /proc/cmdline" , + argv0,gettid (), name); } start++;
@@ -106,8 +106,8 @@ static int get_command_arg_str(const char *name, end =strstr (start,"\n" );if (end == start) { -fprintf (stderr,"%s (%05d): ERROR: no value provided for '%s' in /proc/cmdline\n" , - argv0,gettid (), name); +error_report ("%s (%05d): no value provided for '%s' in /proc/cmdline" , + argv0,gettid (), name);return -1 ; }
@@ -132,7 +132,7 @@ static int get_command_arg_ull(const char *name, errno =0 ; *val =strtoll (valstr, &end,10 );if (errno || *end) { -fprintf (stderr,"%s (%05d): ERROR: cannot parse %s value %s\n" , +error_report ("%s (%05d): cannot parse %s value %s" , argv0,gettid (), name, valstr);free (valstr);return -1 ;
@@ -148,13 +148,13 @@ static int random_bytes(char *buf, size_t len) fd =open ("/dev/urandom" ,O_RDONLY );if (fd <0 ) { -fprintf (stderr,"%s (%05d): ERROR: cannot open /dev/urandom: %s\n" , +error_report ("%s (%05d): cannot open /dev/urandom: %s" , argv0,gettid (),strerror (errno));return -1 ; }if (read (fd, buf, len) != len) { -fprintf (stderr,"%s (%05d): ERROR: cannot read /dev/urandom: %s\n" , +error_report ("%s (%05d): cannot read /dev/urandom: %s" , argv0,gettid (),strerror (errno));close (fd);return -1 ;
@@ -187,12 +187,12 @@ static int stressone(unsigned long long ramsizeMB)unsigned long long before, after;if (!ram) { -fprintf (stderr,"%s (%05d): ERROR: cannot allocate %llu MB of RAM: %s\n" , +error_report ("%s (%05d): cannot allocate %llu MB of RAM: %s" , argv0,gettid (), ramsizeMB,strerror (errno));return -1 ; }if (!data) { -fprintf (stderr,"%s (%d): ERROR: cannot allocate %d bytes of RAM: %s\n" , +error_report ("%s (%d): cannot allocate %d bytes of RAM: %s" , argv0,gettid (),PAGE_SIZE ,strerror (errno));free (ram);return -1 ;
@@ -271,13 +271,13 @@ static int stress(unsigned long long ramsizeGB, int ncpus)static int mount_misc (const char *fstype,const char *dir) {if (mkdir (dir,0755 ) <0 && errno !=EEXIST ) { -fprintf (stderr,"%s (%05d): ERROR: cannot create %s: %s\n" , +error_report ("%s (%05d): cannot create %s: %s" , argv0,gettid (), dir,strerror (errno));return -1 ; }if (mount ("none" , dir, fstype,0 ,NULL ) <0 ) { -fprintf (stderr,"%s (%05d): ERROR: cannot mount %s: %s\n" , +error_report ("%s (%05d): cannot mount %s: %s" , argv0,gettid (), dir,strerror (errno));return -1 ; }
@@ -322,7 +322,7 @@ int main(int argc, char **argv) errno =0 ; ramsizeGB =strtoll (optarg, &end,10 );if (errno !=0 || *end) { -fprintf (stderr,"%s (%05d): ERROR: Cannot parse RAM size %s\n" , +error_report ("%s (%05d): Cannot parse RAM size %s" , argv0,gettid (), optarg);exit_failure (); }
@@ -332,7 +332,7 @@ int main(int argc, char **argv) errno =0 ; ncpus =strtoll (optarg, &end,10 );if (errno !=0 || *end) { -fprintf (stderr,"%s (%05d): ERROR: Cannot parse CPU count %s\n" , +error_report ("%s (%05d): Cannot parse CPU count %s" , argv0,gettid (), optarg);exit_failure (); }
@@ -340,7 +340,7 @@ int main(int argc, char **argv)case '?' :case 'h' : -fprintf (stderr,"%s: [--help][--ramsize GB][--cpus N]\n" , argv0); +error_report ("%s: [--help][--ramsize GB][--cpus N]" , argv0);exit_failure (); } }
tests/postcopy-test.c +4 -4
@@ -11,7 +11,7 @@*/ #include "qemu/osdep.h" - +#include "qemu/error-report.h" #include "libqtest.h" #include "qemu/option.h" #include "qemu/range.h"
@@ -214,7 +214,7 @@ static void wait_for_serial(const char *side)break ;default : -fprintf (stderr,"Unexpected %d on %s serial\n" , readvalue, side); +error_report ("Unexpected %d on %s serial" , readvalue, side);g_assert_not_reached (); } }while (true);
@@ -333,9 +333,9 @@ static void check_guests_ram(void)*/ hit_edge = true; }else { -fprintf (stderr,"Memory content inconsistency at %x" +error_report ("Memory content inconsistency at %x" " first_byte = %x last_byte = %x current = %x" -" hit_edge = %x\n" , +" hit_edge = %x" , address, first_byte, last_byte, b, hit_edge); bad = true; }
tests/qemu-iotests/socket_scm_helper.c +6 -5
@@ -11,6 +11,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include <sys/socket.h> #include <sys/un.h>
@@ -53,7 +54,7 @@ static int send_fd(int fd, int fd_to_send) }while (ret <0 && errno ==EINTR );if (ret <0 ) { -fprintf (stderr,"Failed to send msg, reason: %s\n" ,strerror (errno)); +error_report ("Failed to send msg, reason: %s" ,strerror (errno)); }return ret;
@@ -69,14 +70,14 @@ static int get_fd_num(const char *fd_str, bool silent) sock =strtol (fd_str, &err,10 );if (errno) {if (!silent) { -fprintf (stderr,"Failed in strtol for socket fd, reason: %s\n" , +error_report ("Failed in strtol for socket fd, reason: %s" ,strerror (errno)); }return -1 ; }if (!*fd_str || *err || sock <0 ) {if (!silent) { -fprintf (stderr,"bad numerical value for socket fd '%s'\n" , fd_str); +error_report ("bad numerical value for socket fd '%s'" , fd_str); }return -1 ; }
@@ -96,7 +97,7 @@ int main(int argc, char **argv, char **envp)#ifdef SOCKET_SCM_DEBUG int i;for (i =0 ; i < argc; i++) { -fprintf (stderr,"Parameter %d: %s\n" , i, argv[i]); +error_report ("Parameter %d: %s" , i, argv[i]); }#endif
@@ -120,7 +121,7 @@ int main(int argc, char **argv, char **envp)is supposed to fork and exec this program. */ fd =open (argv[2 ],O_RDONLY );if (fd <0 ) { -fprintf (stderr,"Failed to open file '%s'\n" , argv[2 ]); +error_report ("Failed to open file '%s'" , argv[2 ]);return EXIT_FAILURE ; } }
tests/qht-bench.c +3 -2
@@ -5,6 +5,7 @@* See the COPYING file in the top-level directory. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu/processor.h" #include "qemu/atomic.h" #include "qemu/qht.h"
@@ -89,7 +90,7 @@ static const char commands_string[] =static void usage_complete (int argc,char *argv[]) {fprintf (stderr,"Usage: %s [options]\n" , argv[0 ]); -fprintf (stderr,"options:\n%s\n" , commands_string); +fprintf (stderr,"options:\n%s" , commands_string);exit (-1 ); }
@@ -328,7 +329,7 @@ static void htable_init(void) retries++; } } -fprintf (stderr," populated after %zu retries\n" , retries); +error_report (" populated after %zu retries" , retries); }static void add_stats (struct thread_stats *s,struct thread_info *info,int n)
tests/rcutorture.c +3 -2
@@ -61,6 +61,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu/atomic.h" #include "qemu/rcu.h" #include "qemu/thread.h"
@@ -86,7 +87,7 @@ static int n_threads;static void create_thread (void *(*func)(void *)) {if (n_threads >=NR_THREADS ) { -fprintf (stderr,"Thread limit of %d exceeded!\n" ,NR_THREADS ); +error_report ("Thread limit of %d exceeded!" ,NR_THREADS );exit (-1 ); } qemu_thread_create(&threads[n_threads], "test", func, &data[n_threads],
@@ -417,7 +418,7 @@ static void gtest_stress_10_5(void)static void usage (int argc,char *argv[]) { -fprintf (stderr,"Usage: %s [nreaders [ perf | stress ] ]\n" , argv[0 ]); +error_report ("Usage: %s [nreaders [ perf | stress ] ]" , argv[0 ]);exit (-1 ); }
tests/tcg/linux-test.c +1 -1
@@ -51,7 +51,7 @@ void error1(const char *filename, int line, const char *fmt, ...)va_start (ap, fmt);fprintf (stderr,"%s:%d: " , filename, line);vfprintf (stderr, fmt, ap); -fprintf (stderr,"\n" ); +error_report ("" );va_end (ap);exit (1 ); }
tests/tcg/runcom.c +3 -3
@@ -61,7 +61,7 @@ void dump_regs(struct vm86_regs *r)#ifdef SIGTEST void alarm_handler (int sig) { -fprintf (stderr,"alarm signal=%d\n" , sig); +error_report ("alarm signal=%d" , sig);alarm (1 ); }#endif
@@ -172,7 +172,7 @@ int main(int argc, char **argv)break ;default : unknown_int: -fprintf (stderr,"unsupported int 0x%02x\n" , int_num); +error_report ("unsupported int 0x%02x" , int_num);dump_regs (&ctx.regs);// exit(1); }
@@ -184,7 +184,7 @@ int main(int argc, char **argv)case VM86_STI :break ;default : -fprintf (stderr,"unhandled vm86 return code (0x%x)\n" , ret); +error_report ("unhandled vm86 return code (0x%x)" , ret);dump_regs (&ctx.regs);exit (1 ); }
tests/tcg/test-i386-fprem.c +1 -1
@@ -340,7 +340,7 @@ static void test_fprem_pairs(void) } } -fprintf (stderr,"test-i386-fprem: tested %llu cases\n" , count); +error_report ("test-i386-fprem: tested %llu cases" , count); }int main (int argc,char **argv)
tests/tcg/test_path.c +2 -2
@@ -150,8 +150,8 @@ int main(int argc, char *argv[]) ret =do_test ();cleanup ();if (ret) { -fprintf (stderr,"test_path: failed on line %i\n" , ret); -return 1 ; +error_report ("test_path: failed on line %i" , ret); +return 1 ; }return 0 ; }
tests/test-hmp.c +3 -2
@@ -15,6 +15,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "libqtest.h" static int verbose;
@@ -79,7 +80,7 @@ static void test_commands(void)for (i =0 ; hmp_cmds[i] !=NULL ; i++) {if (verbose) { -fprintf (stderr,"\t%s\n" , hmp_cmds[i]); +error_report ("\t%s" , hmp_cmds[i]); } response =hmp ("%s" , hmp_cmds[i]);g_free (response);
@@ -102,7 +103,7 @@ static void test_info_commands(void) *endp ='\0' ;/* Now run the info command */ if (verbose) { -fprintf (stderr,"\t%s\n" , info); +error_report ("\t%s" , info); } resp =hmp ("%s" , info);g_free (resp);
tests/test-rcu-list.c +3 -2
@@ -21,6 +21,7 @@*/ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu/atomic.h" #include "qemu/rcu.h" #include "qemu/thread.h"
@@ -64,7 +65,7 @@ static int select_random_el(int max)static void create_thread (void *(*func)(void *)) {if (n_threads >=NR_THREADS ) { -fprintf (stderr,"Thread limit of %d exceeded!\n" ,NR_THREADS ); +error_report ("Thread limit of %d exceeded!" ,NR_THREADS );exit (-1 ); } qemu_thread_create(&threads[n_threads], "test", func, &data[n_threads],
@@ -255,7 +256,7 @@ static void rcu_qtest(const char *test, int duration, int nreaders)static void usage (int argc,char *argv[]) { -fprintf (stderr,"Usage: %s duration nreaders\n" , argv[0 ]); +error_report ("Usage: %s duration nreaders" , argv[0 ]);exit (-1 ); }
tests/usb-hcd-ehci-test.c +1 -1
@@ -42,7 +42,7 @@ static void ehci_port_test(struct qhc *hc, int port, uint32_t expect)uint16_t mask = ~(PORTSC_CSC |PORTSC_PEDC |PORTSC_OCC );#if 0 -fprintf (stderr,"%s: %d, have 0x%08x, want 0x%08x\n" , +error_report ("%s: %d, have 0x%08x, want 0x%08x" , __func__, port, value & mask, expect & mask);#endif g_assert ((value & mask) == (expect & mask));
tests/vhost-user-bridge.c +14 -14
@@ -181,7 +181,7 @@ vubr_handle_tx(VuDev *dev, int qidx) out_num = elem->out_num; out_sg = elem->out_sg;if (out_num <1 ) { -fprintf (stderr,"virtio-net header not in first element\n" ); +error_report ("virtio-net header not in first element" );break ; }if (VHOST_USER_BRIDGE_DEBUG ) {
@@ -293,7 +293,7 @@ vubr_backend_recv_cb(int sock, void *ctx) }if (elem->in_num <1 ) { -fprintf (stderr,"virtio-net contains no in buffers\n" ); +error_report ("virtio-net contains no in buffers" );break ; }
@@ -363,7 +363,7 @@ vubr_receive_cb(int sock, void *ctx)VubrDev *vubr = (VubrDev *)ctx;if (!vu_dispatch (&vubr->vudev)) { -fprintf (stderr,"Error while dispatching\n" ); +error_report ("Error while dispatching" ); } }
@@ -460,7 +460,7 @@ vubr_panic(VuDev *dev, const char *msg) {VubrDev *vubr =container_of (dev, VubrDev, vudev); -fprintf (stderr,"PANIC: %s\n" , msg); +error_report ("PANIC: %s" , msg);dispatcher_remove (&vubr->dispatcher, dev->sock); vubr->quit =1 ;
@@ -561,14 +561,14 @@ vubr_set_host(struct sockaddr_in *saddr, const char *host) {if (isdigit (host[0 ])) {if (!inet_aton (host, &saddr->sin_addr)) { -fprintf (stderr,"inet_aton() failed.\n" ); +error_report ("inet_aton() failed." );exit (1 ); } }else {struct hostent *he =gethostbyname (host);if (!he) { -fprintf (stderr,"gethostbyname() failed.\n" ); +error_report ("gethostbyname() failed." );exit (1 ); } saddr->sin_addr = *(struct in_addr *)he->h_addr;
@@ -589,13 +589,13 @@ vubr_backend_udp_setup(VubrDev *dev, lport =strtol (local_port, (char **)&r,0 );if (r == local_port) { -fprintf (stderr,"lport parsing failed.\n" ); +error_report ("lport parsing failed." );exit (1 ); } rport =strtol (remote_port, (char **)&r,0 );if (r == remote_port) { -fprintf (stderr,"rport parsing failed.\n" ); +error_report ("rport parsing failed." );exit (1 ); }
@@ -713,15 +713,15 @@ main(int argc, char *argv[])return 0 ; out: -fprintf (stderr,"Usage: %s " , argv[0 ]); -fprintf (stderr,"[-c] [-u ud_socket_path] [-l lhost:lport] [-r rhost:rport]\n" ); -fprintf (stderr,"\t-u path to unix doman socket. default: %s\n" , +error_report ("Usage: %s " , argv[0 ]); +error_report ("[-c] [-u ud_socket_path] [-l lhost:lport] [-r rhost:rport]" ); +error_report ("\t-u path to unix doman socket. default: %s" ,DEFAULT_UD_SOCKET ); -fprintf (stderr,"\t-l local host and port. default: %s:%s\n" , +fprintf (stderr,"\t-l local host and port. default: %s:%s" ,DEFAULT_LHOST ,DEFAULT_LPORT ); -fprintf (stderr,"\t-r remote host and port. default: %s:%s\n" , +error_report ("\t-r remote host and port. default: %s:%s" ,DEFAULT_RHOST ,DEFAULT_RPORT ); -fprintf (stderr,"\t-c client mode\n" ); +error_report ("\t-c client mode" );return 1 ; }
Signature · 1 line
2.11.0
This series failed build test on s390x host. Please find the details below.
Hi,
This series failed build test on s390x host. Please find the details below.
Type: series
Subject: [Qemu-devel] [PATCH v1 0/8] Remove some of the fprintf(stderr, "*
Message-id: [email protected]
=== TEST SCRIPT BEGIN ===
#!/bin/bash
# Testing script will be invoked under the git checkout with # HEAD pointing to a commit that has the patches applied on top of "base"
# branch set -e echo "=== ENV ===" env echo "=== PACKAGES ===" rpm -qa echo "=== TEST BEGIN ===" CC=$HOME/bin/cc INSTALL=$PWD/install BUILD=$PWD/build echo -n "Using CC: " realpath $CC mkdir -p $BUILD $INSTALL SRC=$PWD cd $BUILD $SRC/configure --cc=$CC --prefix=$INSTALL make -j4 # XXX: we need reliable clean up # make check -j4 V=1 make install === TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
- [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] * [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
8d5b2ea target: Replace fprintf(stderr, "*\n" with error_report() d8106c7 tcg: Replace fprintf(stderr, "*\n" with error_report() ce4a0a7 ui: Replace fprintf(stderr, "*\n" with error_report() 05fbef2 util: Replace fprintf(stderr, "*\n" with error_report() 79f557c block: Replace fprintf(stderr, "*\n" with error_report() b6097a9 hw: Replace fprintf(stderr, "*\n" with error_report() 2149242 tests: Replace fprintf(stderr, "*\n" with error_report() e646215 Replace all occurances of __FUNCTION__ with __func__
=== OUTPUT BEGIN ===
=== ENV ===
XDG_SESSION_ID=19724
SHELL=/bin/sh
USER=fam
PATCHEW=/home/fam/patchew/patchew-cli -s http://patchew.org --nodebug PATH=/usr/bin:/bin PWD=/var/tmp/patchew-tester-tmp-lzr53l_5/src LANG=en_US.UTF-8
HOME=/home/fam
SHLVL=2
LOGNAME=fam DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus XDG_RUNTIME_DIR=/run/user/1012
_=/usr/bin/env
=== PACKAGES ===
gpg-pubkey-873529b8-54e386ff
xz-libs-5.2.2-2.fc24.s390x
libxshmfence-1.2-3.fc24.s390x
giflib-4.1.6-15.fc24.s390x
trousers-lib-0.3.13-6.fc24.s390x ncurses-base-6.0-6.20160709.fc25.noarch gmp-6.1.1-1.fc25.s390x
libidn-1.33-1.fc25.s390x
slang-2.3.0-7.fc25.s390x
pkgconfig-0.29.1-1.fc25.s390x
alsa-lib-1.1.1-2.fc25.s390x yum-metadata-parser-1.1.4-17.fc25.s390x python3-slip-dbus-0.6.4-4.fc25.noarch python2-cssselect-0.9.2-1.fc25.noarch createrepo_c-libs-0.10.0-6.fc25.s390x initscripts-9.69-1.fc25.s390x
parted-3.2-21.fc25.s390x
flex-2.6.0-3.fc25.s390x
colord-libs-1.3.4-1.fc25.s390x python-osbs-client-0.33-3.fc25.noarch perl-Pod-Simple-3.35-1.fc25.noarch python2-simplejson-3.10.0-1.fc25.s390x brltty-5.4-2.fc25.s390x
librados2-10.2.4-2.fc25.s390x
tcp_wrappers-7.6-83.fc25.s390x libcephfs_jni1-10.2.4-2.fc25.s390x nettle-devel-3.3-1.fc25.s390x bzip2-devel-1.0.6-21.fc25.s390x
libuuid-2.28.2-2.fc25.s390x
python3-dnf-1.1.10-6.fc25.noarch texlive-kpathsea-doc-svn41139-33.fc25.1.noarch openssh-7.4p1-4.fc25.s390x texlive-kpathsea-bin-svn40473-33.20160520.fc25.1.s390x texlive-graphics-svn41015-33.fc25.1.noarch texlive-dvipdfmx-def-svn40328-33.fc25.1.noarch texlive-mfware-svn40768-33.fc25.1.noarch texlive-texlive-scripts-svn41433-33.fc25.1.noarch texlive-euro-svn22191.1.1-33.fc25.1.noarch texlive-etex-svn37057.0-33.fc25.1.noarch texlive-iftex-svn29654.0.2-33.fc25.1.noarch texlive-palatino-svn31835.0-33.fc25.1.noarch texlive-texlive-docindex-svn41430-33.fc25.1.noarch texlive-xunicode-svn30466.0.981-33.fc25.1.noarch texlive-koma-script-svn41508-33.fc25.1.noarch texlive-pst-grad-svn15878.1.06-33.fc25.1.noarch texlive-pst-blur-svn15878.2.0-33.fc25.1.noarch texlive-jknapltx-svn19440.0-33.fc25.1.noarch texinfo-6.1-4.fc25.s390x
openssl-devel-1.0.2k-1.fc25.s390x
jansson-2.10-2.fc25.s390x
fedora-repos-25-4.noarch
perl-Errno-1.25-387.fc25.s390x
acl-2.2.52-13.fc25.s390x
systemd-pam-231-17.fc25.s390x NetworkManager-libnm-1.4.4-5.fc25.s390x poppler-0.45.0-5.fc25.s390x
ccache-3.3.4-1.fc25.s390x
valgrind-3.12.0-9.fc25.s390x
perl-open-1.10-387.fc25.noarch
libgcc-6.4.1-1.fc25.s390x
libsoup-2.56.1-1.fc25.s390x libstdc++-devel-6.4.1-1.fc25.s390x libobjc-6.4.1-1.fc25.s390x
python2-rpm-4.13.0.1-2.fc25.s390x python2-gluster-3.10.5-1.fc25.s390x rpm-build-4.13.0.1-2.fc25.s390x glibc-static-2.24-10.fc25.s390x
lz4-1.8.0-1.fc25.s390x
xapian-core-libs-1.2.24-1.fc25.s390x elfutils-libelf-devel-0.169-1.fc25.s390x nss-softokn-3.32.0-1.2.fc25.s390x
pango-1.40.9-1.fc25.s390x glibc-debuginfo-common-2.24-10.fc25.s390x libaio-0.3.110-6.fc24.s390x
libfontenc-1.1.3-3.fc24.s390x
lzo-2.08-8.fc24.s390x
isl-0.14-5.fc24.s390x
libXau-1.0.8-6.fc24.s390x
linux-atm-libs-2.5.1-14.fc24.s390x libXext-1.3.3-4.fc24.s390x
libXxf86vm-1.1.4-3.fc24.s390x
bison-3.0.4-4.fc24.s390x
perl-srpm-macros-1-20.fc25.noarch
gawk-4.1.3-8.fc25.s390x libwayland-client-1.12.0-1.fc25.s390x perl-Exporter-5.72-366.fc25.noarch perl-version-0.99.17-1.fc25.s390x fftw-libs-double-3.3.5-3.fc25.s390x libssh2-1.8.0-1.fc25.s390x ModemManager-glib-1.6.4-1.fc25.s390x newt-python3-0.52.19-2.fc25.s390x python-munch-2.0.4-3.fc25.noarch python-bugzilla-1.2.2-4.fc25.noarch libedit-3.1-16.20160618cvs.fc25.s390x createrepo_c-0.10.0-6.fc25.s390x device-mapper-multipath-libs-0.4.9-83.fc25.s390x yum-3.4.3-510.fc25.noarch
mozjs17-17.0.0-16.fc25.s390x
libselinux-2.5-13.fc25.s390x python2-pyparsing-2.1.10-1.fc25.noarch cairo-gobject-1.14.8-1.fc25.s390x xorg-x11-proto-devel-7.7-20.fc25.noarch brlapi-0.6.5-2.fc25.s390x
librados-devel-10.2.4-2.fc25.s390x libXinerama-devel-1.1.3-6.fc24.s390x lua-posix-33.3.1-3.fc25.s390x usbredir-devel-0.7.1-2.fc24.s390x python3-dnf-plugins-core-0.1.21-5.fc25.noarch texlive-pdftex-doc-svn41149-33.fc25.1.noarch openssh-clients-7.4p1-4.fc25.s390x iptables-1.6.0-3.fc25.s390x texlive-texlive.infra-svn41280-33.fc25.1.noarch texlive-graphics-cfg-svn40269-33.fc25.1.noarch texlive-bibtex-svn40768-33.fc25.1.noarch texlive-mfware-bin-svn40473-33.20160520.fc25.1.s390x texlive-texlive-scripts-bin-svn29741.0-33.20160520.fc25.1.noarch texlive-sauerj-svn15878.0-33.fc25.1.noarch texlive-enctex-svn34957.0-33.fc25.1.noarch texlive-ifetex-svn24853.1.2-33.fc25.1.noarch texlive-ntgclass-svn15878.2.1a-33.fc25.1.noarch texlive-tex-gyre-math-svn41264-33.fc25.1.noarch texlive-bera-svn20031.0-33.fc25.1.noarch texlive-ms-svn29849.0-33.fc25.1.noarch texlive-pst-fill-svn15878.1.01-33.fc25.1.noarch texlive-ctable-svn38672-33.fc25.1.noarch texlive-extsizes-svn17263.1.4a-33.fc25.1.noarch texlive-collection-latexrecommended-svn35765.0-33.20160520.fc25.1.noarch perl-Filter-1.57-1.fc25.s390x python2-rpm-macros-3-12.fc25.noarch
gdbm-1.13-1.fc25.s390x
libtasn1-4.12-1.fc25.s390x
fedora-release-25-2.noarch
gdb-headless-7.12.1-48.fc25.s390x perl-macros-5.24.2-387.fc25.s390x pcre-devel-8.41-1.fc25.s390x
libX11-1.6.5-1.fc25.s390x
coreutils-8.25-17.fc25.s390x python2-openidc-client-0-3.20170523git77cb3ee.fc25.noarch systemtap-client-3.1-5.fc25.s390x firewalld-0.4.4.5-1.fc25.noarch
glibc-2.24-10.fc25.s390x libglvnd-egl-0.2.999-24.20170818git8d4d03f.fc25.s390x libkadm5-1.14.4-8.fc25.s390x glusterfs-fuse-3.10.5-1.fc25.s390x libgfortran-6.4.1-1.fc25.s390x python3-rpm-4.13.0.1-2.fc25.s390x glusterfs-extra-xlators-3.10.5-1.fc25.s390x dracut-config-rescue-046-2.git20170811.fc25.s390x python2-sphinx-theme-alabaster-0.7.9-1.fc25.noarch elfutils-devel-0.169-1.fc25.s390x
nss-3.32.0-1.1.fc25.s390x
pango-devel-1.40.9-1.fc25.s390x glibc-debuginfo-2.24-10.fc25.s390x gpg-pubkey-efe550f5-5220ba41
gpg-pubkey-81b46521-55b3ca9a
filesystem-3.2-37.fc24.s390x
libffi-3.1-9.fc24.s390x
keyutils-libs-1.5.9-8.fc24.s390x libnfnetlink-1.0.1-8.fc24.s390x libtheora-1.1.1-14.fc24.s390x xml-common-0.6.3-44.fc24.noarch
autoconf-2.69-22.fc24.noarch
libXt-1.1.5-3.fc24.s390x
kbd-legacy-2.0.3-3.fc24.noarch ghostscript-fonts-5.50-35.fc24.noarch libXevie-1.0.3-11.fc24.s390x
libcap-2.25-2.fc25.s390x
mpfr-3.1.5-1.fc25.s390x
perl-Carp-1.40-365.fc25.noarch
libmnl-1.0.4-1.fc25.s390x perl-Unicode-EastAsianWidth-1.33-8.fc25.noarch libwayland-cursor-1.12.0-1.fc25.s390x python-krbV-1.0.90-12.fc25.s390x python2-urllib3-1.15.1-3.fc25.noarch fipscheck-1.4.1-11.fc25.s390x
libndp-1.6-1.fc25.s390x
gnupg2-2.1.13-2.fc25.s390x
libXfixes-5.0.3-1.fc25.s390x adwaita-icon-theme-3.22.0-1.fc25.noarch dconf-0.26.0-1.fc25.s390x ncurses-devel-6.0-6.20160709.fc25.s390x dejagnu-1.6-1.fc25.noarch device-mapper-1.02.136-3.fc25.s390x libevent-2.0.22-1.fc25.s390x
atk-devel-2.22.0-1.fc25.s390x
libev-4.24-1.fc25.s390x xorg-x11-fonts-Type1-7.5-16.fc24.noarch brlapi-devel-0.6.5-2.fc25.s390x pulseaudio-libs-10.0-2.fc25.s390x
glib2-2.50.3-1.fc25.s390x
dnf-1.1.10-6.fc25.noarch texlive-metafont-bin-svn40987-33.20160520.fc25.1.s390x texlive-xkeyval-svn35741.2.7a-33.fc25.1.noarch texlive-euler-svn17261.2.5-33.fc25.1.noarch texlive-mptopdf-svn41282-33.fc25.1.noarch texlive-wasy-svn35831.0-33.fc25.1.noarch texlive-avantgar-svn31835.0-33.fc25.1.noarch texlive-eurosym-svn17265.1.4_subrfix-33.fc25.1.noarch texlive-knuth-lib-svn35820.0-33.fc25.1.noarch texlive-parallel-svn15878.0-33.fc25.1.noarch texlive-texlive-msg-translations-svn41431-33.fc25.1.noarch texlive-latex-svn40218-33.fc25.1.noarch texlive-lualatex-math-svn40621-33.fc25.1.noarch texlive-auto-pst-pdf-svn23723.0.6-33.fc25.1.noarch texlive-powerdot-svn38984-33.fc25.1.noarch texlive-wasysym-svn15878.2.0-33.fc25.1.noarch ImageMagick-libs-6.9.3.0-6.fc25.s390x geoclue2-2.4.5-1.fc25.s390x perl-IO-Socket-IP-0.39-1.fc25.noarch python2-pyasn1-0.2.3-1.fc25.noarch at-spi2-core-devel-2.22.1-1.fc25.s390x libacl-2.2.52-13.fc25.s390x
perl-libs-5.24.2-387.fc25.s390x mesa-libglapi-17.0.5-3.fc25.s390x python3-rpmconf-1.0.19-1.fc25.noarch pcre-utf32-8.41-1.fc25.s390x libX11-common-1.6.5-1.fc25.noarch coreutils-common-8.25-17.fc25.s390x mesa-libEGL-17.0.5-3.fc25.s390x systemtap-runtime-3.1-5.fc25.s390x NetworkManager-glib-1.4.4-5.fc25.s390x audit-2.7.7-1.fc25.s390x glibc-all-langpacks-2.24-10.fc25.s390x libglvnd-glx-0.2.999-24.20170818git8d4d03f.fc25.s390x glusterfs-api-3.10.5-1.fc25.s390x libepoxy-devel-1.4.3-1.fc25.1.s390x gtk3-3.22.17-2.fc25.s390x
rpm-4.13.0.1-2.fc25.s390x net-snmp-agent-libs-5.7.3-15.fc25.s390x pcre2-devel-10.23-9.fc25.s390x
subversion-1.9.7-1.fc25.s390x
libsndfile-1.0.28-6.fc25.s390x
lasi-1.1.2-6.fc24.s390x python2-snowballstemmer-1.2.1-1.fc25.noarch nss-util-devel-3.32.0-1.0.fc25.s390x vim-common-8.0.1030-1.fc25.s390x
gd-2.2.5-1.fc25.s390x
gpg-pubkey-34ec9cba-54e38751
gpg-pubkey-030d5aed-55b577f0
basesystem-11-2.fc24.noarch
libmpc-1.0.2-5.fc24.s390x
libunistring-0.9.4-3.fc24.s390x libmodman-2.0.1-12.fc24.s390x
lsscsi-0.28-3.fc24.s390x
kbd-misc-2.0.3-3.fc24.noarch
kmod-23-1.fc25.s390x
newt-0.52.19-2.fc25.s390x perl-Text-Unidecode-1.27-3.fc25.noarch plymouth-core-libs-0.9.3-0.6.20160620git0e65b86c.fc25.s390x which-2.21-1.fc25.s390x
python3-slip-0.6.4-4.fc25.noarch python3-systemd-232-1.fc25.s390x python-lockfile-0.11.0-4.fc25.noarch python2-requests-2.10.0-4.fc25.noarch libnghttp2-1.13.0-2.fc25.s390x python-urlgrabber-3.10.1-9.fc25.noarch iputils-20161105-1.fc25.s390x
rest-0.8.0-1.fc25.s390x adwaita-cursor-theme-3.22.0-1.fc25.noarch authconfig-6.2.10-14.fc25.s390x
automake-1.15-7.fc25.noarch shared-mime-info-1.8-1.fc25.s390x
pigz-2.3.4-1.fc25.s390x device-mapper-libs-1.02.136-3.fc25.s390x dnsmasq-2.76-2.fc25.s390x fedora-packager-0.6.0.1-1.fc25.noarch libwebp-0.5.2-1.fc25.s390x
boost-system-1.60.0-10.fc25.s390x libasyncns-0.8-10.fc24.s390x
libXau-devel-1.0.8-6.fc24.s390x libverto-libev-0.2.6-6.fc24.s390x python3-html5lib-0.999-9.fc25.noarch ttmkfdir-3.0.9-48.fc24.s390x pulseaudio-libs-glib2-10.0-2.fc25.s390x texlive-lib-2016-33.20160520.fc25.s390x libXi-devel-1.7.9-1.fc25.s390x python3-distro-1.0.3-1.fc25.noarch texlive-texlive-common-doc-svn40682-33.fc25.1.noarch packagedb-cli-2.14.1-1.fc25.noarch texlive-metafont-svn40793-33.fc25.1.noarch texlive-tools-svn40934-33.fc25.1.noarch texlive-enumitem-svn24146.3.5.2-33.fc25.1.noarch texlive-mptopdf-bin-svn18674.0-33.20160520.fc25.1.noarch texlive-underscore-svn18261.0-33.fc25.1.noarch texlive-anysize-svn15878.0-33.fc25.1.noarch texlive-euenc-svn19795.0.1h-33.fc25.1.noarch texlive-kastrup-svn15878.0-33.fc25.1.noarch texlive-paralist-svn39247-33.fc25.1.noarch texlive-texlive-en-svn41185-33.fc25.1.noarch texlive-tipa-svn29349.1.3-33.fc25.1.noarch texlive-currfile-svn40725-33.fc25.1.noarch texlive-pst-node-svn40743-33.fc25.1.noarch texlive-pst-slpe-svn24391.1.31-33.fc25.1.noarch texlive-typehtml-svn17134.0-33.fc25.1.noarch SDL2-devel-2.0.5-3.fc25.s390x
libcroco-0.6.11-3.fc25.s390x bluez-libs-devel-5.44-1.fc25.s390x firewalld-filesystem-0.4.4.5-1.fc25.noarch pcre-cpp-8.41-1.fc25.s390x python3-firewall-0.4.4.5-1.fc25.noarch freetype-devel-2.6.5-9.fc25.s390x pcre-utf16-8.41-1.fc25.s390x linux-firmware-20170605-74.git37857004.fc25.noarch kernel-modules-4.11.10-200.fc25.s390x systemtap-devel-3.1-5.fc25.s390x
polkit-0.113-8.fc25.s390x perl-SelfLoader-1.23-387.fc25.noarch libdb-utils-5.3.28-24.fc25.s390x glibc-common-2.24-10.fc25.s390x libglvnd-0.2.999-24.20170818git8d4d03f.fc25.s390x webkitgtk4-2.16.6-1.fc25.s390x rpm-build-libs-4.13.0.1-2.fc25.s390x libglvnd-core-devel-0.2.999-24.20170818git8d4d03f.fc25.s390x rpm-devel-4.13.0.1-2.fc25.s390x
kernel-4.12.9-200.fc25.s390x libtool-ltdl-2.4.6-14.fc25.s390x gts-0.7.6-29.20121130.fc24.s390x python2-imagesize-0.7.1-2.fc25.noarch nss-softokn-freebl-3.32.0-1.2.fc25.s390x selinux-policy-3.13.1-225.22.fc25.noarch kernel-devel-4.12.11-200.fc25.s390x fontpackages-filesystem-1.44-17.fc24.noarch groff-base-1.22.3-8.fc24.s390x
ilmbase-2.2.0-5.fc24.s390x
OpenEXR-libs-2.2.0-5.fc24.s390x
hesiod-3.2.1-6.fc24.s390x
sysfsutils-2.1.0-19.fc24.s390x ocaml-srpm-macros-2-4.fc24.noarch
mailx-12.5-19.fc24.s390x ncurses-libs-6.0-6.20160709.fc25.s390x ipset-libs-6.29-1.fc25.s390x
gmp-devel-6.1.1-1.fc25.s390x
python-pip-8.1.2-2.fc25.noarch
harfbuzz-1.3.2-1.fc25.s390x python2-iniparse-0.4-20.fc25.noarch python3-iniparse-0.4-20.fc25.noarch python3-kickstart-2.32-1.fc25.noarch perl-Net-SSLeay-1.78-1.fc25.s390x
drpm-0.3.0-3.fc25.s390x
glib-networking-2.50.0-1.fc25.s390x webkitgtk3-2.4.11-3.fc25.s390x
libXaw-1.0.13-4.fc25.s390x xorg-x11-font-utils-7.5-32.fc25.s390x hardlink-1.1-1.fc25.s390x
libcom_err-1.43.3-1.fc25.s390x python2-dateutil-2.6.0-1.fc25.noarch libXpm-3.5.12-1.fc25.s390x
poppler-data-0.4.7-6.fc25.noarch
librbd1-10.2.4-2.fc25.s390x perl-Digest-MD5-2.55-2.fc25.s390x wayland-protocols-devel-1.7-1.fc25.noarch texi2html-5.0-4.fc24.noarch
libxkbcommon-0.7.1-1.fc25.s390x libuuid-devel-2.28.2-2.fc25.s390x libcacard-2.5.3-1.fc25.s390x libwmf-lite-0.2.8.4-50.fc25.s390x texlive-tetex-svn41059-33.fc25.1.noarch texlive-thumbpdf-svn34621.3.16-33.fc25.1.noarch texlive-carlisle-svn18258.0-33.fc25.1.noarch texlive-makeindex-bin-svn40473-33.20160520.fc25.1.s390x texlive-pdftex-svn41149-33.fc25.1.noarch texlive-csquotes-svn39538-33.fc25.1.noarch texlive-courier-svn35058.0-33.fc25.1.noarch texlive-helvetic-svn31835.0-33.fc25.1.noarch texlive-mfnfss-svn19410.0-33.fc25.1.noarch texlive-sepnum-svn20186.2.0-33.fc25.1.noarch texlive-utopia-svn15878.0-33.fc25.1.noarch texlive-luatexbase-svn38550-33.fc25.1.noarch texlive-pst-3d-svn17257.1.10-33.fc25.1.noarch texlive-latex-bin-bin-svn14050.0-33.20160520.fc25.1.noarch texlive-l3experimental-svn41163-33.fc25.1.noarch net-tools-2.0-0.40.20160329git.fc25.s390x perl-Pod-Perldoc-3.28-1.fc25.noarch openssl-1.0.2k-1.fc25.s390x
man-pages-4.06-4.fc25.noarch
libxml2-2.9.4-2.fc25.s390x python3-dateutil-2.6.0-1.fc25.noarch perl-threads-shared-1.57-1.fc25.s390x libnotify-0.7.7-1.fc25.s390x
unzip-6.0-32.fc25.s390x python-beautifulsoup4-4.6.0-1.fc25.noarch dhcp-client-4.3.5-3.fc25.s390x python2-fedora-0.9.0-6.fc25.noarch
gdb-7.12.1-48.fc25.s390x
sqlite-libs-3.14.2-3.fc25.s390x webkitgtk4-jsc-2.16.6-1.fc25.s390x libgomp-6.4.1-1.fc25.s390x
p11-kit-trust-0.23.8-1.fc25.s390x gdk-pixbuf2-devel-2.36.9-1.fc25.s390x rpm-plugin-selinux-4.13.0.1-2.fc25.s390x mariadb-common-10.1.25-1.fc25.s390x dbus-devel-1.11.16-1.fc25.s390x
lz4-libs-1.8.0-1.fc25.s390x python2-jinja2-2.8.1-1.fc25.noarch system-python-libs-3.5.4-1.fc25.s390x python2-rpkg-1.50-2.fc25.noarch
libsolv-0.6.29-1.fc25.s390x
gpg-pubkey-95a43f54-5284415a dejavu-fonts-common-2.35-3.fc24.noarch libSM-1.2.2-4.fc24.s390x
diffutils-3.3-13.fc24.s390x
libogg-1.3.2-5.fc24.s390x hunspell-en-US-0.20140811.1-5.fc24.noarch libdaemon-0.14-10.fc24.s390x
patch-2.7.5-3.fc24.s390x
libsysfs-2.1.0-19.fc24.s390x
procmail-3.22-39.fc24.s390x
libXdamage-1.1.4-8.fc24.s390x
libotf-0.9.13-7.fc24.s390x
urw-fonts-2.4-22.fc24.noarch crontabs-1.11-12.20150630git.fc24.noarch ppp-2.4.7-9.fc24.s390x
cyrus-sasl-2.1.26-26.2.fc24.s390x zlib-devel-1.2.8-10.fc24.s390x
time-1.7-49.fc24.s390x
gpg-pubkey-fdb19c98-56fd6333
libcap-ng-0.7.8-1.fc25.s390x
binutils-2.26.1-1.fc25.s390x
lcms2-2.8-2.fc25.s390x
libcomps-0.1.7-5.fc25.s390x perl-constant-1.33-367.fc25.noarch perl-Data-Dumper-2.161-1.fc25.s390x ipcalc-0.1.8-1.fc25.s390x
gmp-c++-6.1.1-1.fc25.s390x
fontconfig-2.12.1-1.fc25.s390x
enchant-1.6.0-14.fc25.s390x
pyliblzma-0.5.3-16.fc25.s390x libsepol-devel-2.5-10.fc25.s390x python3-ordered-set-2.0.0-4.fc25.noarch python-ipaddress-1.0.16-3.fc25.noarch python2-kerberos-1.2.5-1.fc25.s390x python2-pysocks-1.5.6-5.fc25.noarch fipscheck-lib-1.4.1-11.fc25.s390x libatomic_ops-7.4.4-1.fc25.s390x python2-pygpgme-0.3-18.fc25.s390x
orc-0.4.26-1.fc25.s390x
yum-utils-1.1.31-511.fc25.noarch libXrender-0.9.10-1.fc25.s390x
libXrandr-1.5.1-1.fc25.s390x
go-srpm-macros-2-7.fc25.noarch gnupg2-smime-2.1.13-2.fc25.s390x guile-devel-2.0.13-1.fc25.s390x uboot-tools-2016.09.01-2.fc25.s390x pykickstart-2.32-1.fc25.noarch python-bunch-1.0.1-9.fc25.noarch perl-generators-1.10-1.fc25.noarch perl-Mozilla-CA-20160104-3.fc25.noarch bzip2-libs-1.0.6-21.fc25.s390x
libpng-1.6.27-1.fc25.s390x desktop-file-utils-0.23-2.fc25.s390x python2-cccolutils-1.4-1.fc25.s390x python2-lxml-3.7.2-1.fc25.s390x redhat-rpm-config-45-1.fc25.noarch device-mapper-event-libs-1.02.136-3.fc25.s390x lvm2-libs-2.02.167-3.fc25.s390x libselinux-python-2.5-13.fc25.s390x boost-thread-1.60.0-10.fc25.s390x librbd-devel-10.2.4-2.fc25.s390x libXcursor-devel-1.1.14-6.fc24.s390x latex2html-2012-7.fc24.noarch lksctp-tools-1.0.16-5.fc24.s390x
libfdt-1.4.2-1.fc25.s390x
libXft-devel-2.3.2-4.fc24.s390x libattr-devel-2.4.47-16.fc24.s390x libiscsi-devel-1.15.0-2.fc24.s390x gettext-0.19.8.1-3.fc25.s390x libjpeg-turbo-devel-1.5.1-0.fc25.s390x pulseaudio-libs-devel-10.0-2.fc25.s390x libmount-2.28.2-2.fc25.s390x python3-decorator-4.0.11-1.fc25.noarch tzdata-java-2017b-1.fc25.noarch python-srpm-macros-3-12.fc25.noarch libsmartcols-2.28.2-2.fc25.s390x texlive-kpathsea-svn41139-33.fc25.1.noarch texlive-amsmath-svn41561-33.fc25.1.noarch texlive-thumbpdf-bin-svn6898.0-33.20160520.fc25.1.noarch texlive-psnfss-svn33946.9.2a-33.fc25.1.noarch texlive-subfig-svn15878.1.3-33.fc25.1.noarch texlive-fancybox-svn18304.1.4-33.fc25.1.noarch texlive-lua-alt-getopt-svn29349.0.7.0-33.fc25.1.noarch texlive-natbib-svn20668.8.31b-33.fc25.1.noarch texlive-pdftex-bin-svn40987-33.20160520.fc25.1.s390x texlive-xdvi-svn40768-33.fc25.1.noarch texlive-crop-svn15878.1.5-33.fc25.1.noarch texlive-babel-english-svn30264.3.3p-33.fc25.1.noarch texlive-cmextra-svn32831.0-33.fc25.1.noarch texlive-fancyhdr-svn15878.3.1-33.fc25.1.noarch texlive-luatex-svn40963-33.fc25.1.noarch texlive-knuth-local-svn38627-33.fc25.1.noarch texlive-mflogo-font-svn36898.1.002-33.fc25.1.noarch texlive-parskip-svn19963.2.0-33.fc25.1.noarch texlive-section-svn20180.0-33.fc25.1.noarch texlive-textcase-svn15878.0-33.fc25.1.noarch texlive-updmap-map-svn41159-33.fc25.1.noarch texlive-attachfile-svn38830-33.fc25.1.noarch libtiff-4.0.8-1.fc25.s390x
libdb-5.3.28-24.fc25.s390x bind-license-9.10.5-2.P2.fc25.noarch mesa-libGLES-17.0.5-3.fc25.s390x python3-requests-kerberos-0.10.0-2.fc25.noarch python3-pyOpenSSL-16.2.0-1.fc25.noarch perl-threads-2.16-1.fc25.s390x cryptsetup-libs-1.7.5-1.fc25.s390x netpbm-10.79.00-1.fc25.s390x qrencode-libs-3.4.4-1.fc25.s390x gstreamer1-plugins-base-1.10.5-1.fc25.s390x elfutils-default-yama-scope-0.169-1.fc25.noarch systemd-udev-231-17.fc25.s390x python2-koji-1.13.0-2.fc25.noarch unbound-libs-1.6.3-1.fc25.s390x openldap-2.4.44-11.fc25.s390x
koji-1.13.0-2.fc25.noarch
bind99-libs-9.9.10-2.P3.fc25.s390x mesa-libGL-devel-17.0.5-3.fc25.s390x graphite2-devel-1.3.10-1.fc25.s390x systemtap-sdt-devel-3.1-5.fc25.s390x iproute-tc-4.11.0-1.fc25.s390x
libarchive-3.2.2-2.fc25.s390x publicsuffix-list-dafsa-20170424-1.fc25.noarch expat-2.2.3-1.fc25.s390x
p11-kit-0.23.8-1.fc25.s390x kernel-core-4.12.9-200.fc25.s390x emacs-filesystem-25.2-3.fc25.noarch ca-certificates-2017.2.16-1.0.fc25.noarch librsvg2-2.40.18-1.fc25.s390x gtk-update-icon-cache-3.22.17-2.fc25.s390x libidn2-2.0.4-1.fc25.s390x
rpm-libs-4.13.0.1-2.fc25.s390x mariadb-libs-10.1.25-1.fc25.s390x java-1.8.0-openjdk-headless-1.8.0.144-5.b01.fc25.s390x gcc-objc-6.4.1-1.fc25.s390x p11-kit-devel-0.23.8-1.fc25.s390x
ethtool-4.11-1.fc25.s390x python2-sssdconfig-1.15.3-1.fc25.noarch xorg-x11-fonts-ISO8859-1-100dpi-7.5-16.fc24.noarch lato-fonts-2.015-2.fc24.noarch python-sphinx-locale-1.5.2-2.fc25.noarch dpkg-1.17.27-1.fc25.s390x
gnutls-3.5.15-1.fc25.s390x nss-softokn-freebl-devel-3.32.0-1.2.fc25.s390x vim-filesystem-8.0.1030-1.fc25.s390x gnutls-devel-3.5.15-1.fc25.s390x kernel-headers-4.12.11-200.fc25.s390x texlive-luaotfload-svn40902-33.fc25.1.noarch texlive-unicode-math-svn38462-33.fc25.1.noarch texlive-fancyvrb-svn18492.2.8-33.fc25.1.noarch texlive-pst-pdf-bin-svn7838.0-33.20160520.fc25.1.noarch texlive-amscls-svn36804.0-33.fc25.1.noarch texlive-ltxmisc-svn21927.0-33.fc25.1.noarch texlive-breqn-svn38099.0.98d-33.fc25.1.noarch texlive-xetex-def-svn40327-33.fc25.1.noarch openssh-server-7.4p1-4.fc25.s390x sendmail-8.15.2-8.fc25.s390x
tzdata-2017b-1.fc25.noarch
hunspell-1.4.1-2.fc25.s390x
gpg-pubkey-8e1431d5-53bcbac7
zlib-1.2.8-10.fc24.s390x
sed-4.2.2-15.fc24.s390x
psmisc-22.21-8.fc24.s390x
gpm-libs-1.20.7-9.fc24.s390x
zip-3.0-16.fc24.s390x
libyubikey-1.13-2.fc24.s390x sg3_utils-libs-1.41-3.fc24.s390x polkit-pkla-compat-0.1-7.fc24.s390x
passwd-0.79-8.fc24.s390x
trousers-0.3.13-6.fc24.s390x
grubby-8.40-3.fc24.s390x
rootfiles-8.1-19.fc24.noarch
nettle-3.3-1.fc25.s390x
libksba-1.3.5-1.fc25.s390x perl-Text-ParseWords-3.30-365.fc25.noarch perl-PathTools-3.63-366.fc25.s390x perl-File-Temp-0.23.04-365.fc25.noarch fuse-libs-2.9.7-1.fc25.s390x perl-Pod-Escapes-1.07-365.fc25.noarch perl-Term-ANSIColor-4.05-2.fc25.noarch perl-URI-1.71-5.fc25.noarch
libXfont-1.5.2-1.fc25.s390x
python-six-1.10.0-3.fc25.noarch
dbus-glib-0.108-1.fc25.s390x gobject-introspection-1.50.0-1.fc25.s390x libpwquality-1.3.0-6.fc25.s390x python-gobject-base-3.22.0-1.fc25.s390x python-html5lib-0.999-9.fc25.noarch python3-dbus-1.2.4-2.fc25.s390x python3-chardet-2.3.0-1.fc25.noarch python3-urllib3-1.15.1-3.fc25.noarch python-offtrac-0.1.0-7.fc25.noarch python2-cryptography-1.5.3-3.fc25.s390x python2-requests-kerberos-0.10.0-2.fc25.noarch libserf-1.3.9-1.fc25.s390x
libdatrie-0.2.9-3.fc25.s390x s390utils-base-1.36.0-1.fc25.s390x kpartx-0.4.9-83.fc25.s390x s390utils-cpuplugd-1.36.0-1.fc25.s390x s390utils-osasnmpd-1.36.0-1.fc25.s390x python-dnf-plugins-extras-common-0.0.12-4.fc25.noarch fpc-srpm-macros-1.0-1.fc25.noarch
libuser-0.62-4.fc25.s390x
man-db-2.7.5-3.fc25.s390x python-systemd-doc-232-1.fc25.s390x bodhi-client-0.9.12.2-6.fc25.noarch cairo-1.14.8-1.fc25.s390x
cracklib-dicts-2.9.6-4.fc25.s390x libselinux-python3-2.5-13.fc25.s390x python2-enchant-1.6.8-1.fc25.noarch boost-iostreams-1.60.0-10.fc25.s390x userspace-rcu-0.9.2-2.fc25.s390x libXext-devel-1.3.3-4.fc24.s390x libXrandr-devel-1.5.1-1.fc25.s390x python3-lxml-3.7.2-1.fc25.s390x
libiscsi-1.15.0-2.fc24.s390x fontconfig-devel-2.12.1-1.fc25.s390x libfdt-devel-1.4.2-1.fc25.s390x ceph-devel-compat-10.2.4-2.fc25.s390x zlib-static-1.2.8-10.fc24.s390x
chrpath-0.16-3.fc24.s390x
info-6.1-4.fc25.s390x
iptables-libs-1.6.0-3.fc25.s390x libfdisk-2.28.2-2.fc25.s390x dnf-plugins-core-0.1.21-5.fc25.noarch perl-Storable-2.56-368.fc25.s390x python2-decorator-4.0.11-1.fc25.noarch libnetfilter_conntrack-1.0.6-2.fc25.s390x texlive-texlive.infra-bin-svn40312-33.20160520.fc25.1.s390x texlive-ifluatex-svn41346-33.fc25.1.noarch texlive-fp-svn15878.0-33.fc25.1.noarch texlive-latex-fonts-svn28888.0-33.fc25.1.noarch texlive-bibtex-bin-svn40473-33.20160520.fc25.1.s390x texlive-glyphlist-svn28576.0-33.fc25.1.noarch texlive-marvosym-svn29349.2.2a-33.fc25.1.noarch texlive-tex-bin-svn40987-33.20160520.fc25.1.s390x texlive-texconfig-svn40768-33.fc25.1.noarch texlive-wasy2-ps-svn35830.0-33.fc25.1.noarch texlive-psfrag-svn15878.3.04-33.fc25.1.noarch texlive-charter-svn15878.0-33.fc25.1.noarch texlive-ec-svn25033.1.0-33.fc25.1.noarch texlive-lineno-svn21442.4.41-33.fc25.1.noarch texlive-hyphen-base-svn41138-33.fc25.1.noarch texlive-manfnt-font-svn35799.0-33.fc25.1.noarch texlive-ncntrsbk-svn31835.0-33.fc25.1.noarch texlive-pst-math-svn34786.0.63-33.fc25.1.noarch texlive-symbol-svn31835.0-33.fc25.1.noarch texlive-environ-svn33821.0.3-33.fc25.1.noarch texlive-algorithms-svn38085.0.1-33.fc25.1.noarch python3-hawkey-0.6.4-3.fc25.s390x freetype-2.6.5-9.fc25.s390x mesa-libwayland-egl-17.0.5-3.fc25.s390x libicu-57.1-5.fc25.s390x
libnl3-cli-3.2.29-3.fc25.s390x
cups-libs-2.2.0-9.fc25.s390x bind-libs-lite-9.10.5-2.P2.fc25.s390x python3-kerberos-1.2.5-1.fc25.s390x python3-cryptography-1.5.3-3.fc25.s390x perl-IO-1.36-387.fc25.s390x
dhcp-libs-4.3.5-3.fc25.s390x
rsync-3.1.2-4.fc25.s390x
make-4.1-6.fc25.s390x
quota-4.03-8.fc25.s390x
libX11-devel-1.6.5-1.fc25.s390x ghostscript-9.20-9.fc25.s390x
rpcbind-0.2.4-6.rc2.fc25.s390x pyOpenSSL-16.2.0-1.fc25.noarch python3-pycurl-7.43.0-6.fc25.s390x bind99-license-9.9.10-2.P3.fc25.noarch python-firewall-0.4.4.5-1.fc25.noarch netpbm-progs-10.79.00-1.fc25.s390x
wget-1.18-3.fc25.s390x
libsemanage-2.5-9.fc25.s390x
telnet-0.17-68.fc25.s390x
gdk-pixbuf2-2.36.9-1.fc25.s390x dbus-libs-1.11.16-1.fc25.s390x glusterfs-client-xlators-3.10.5-1.fc25.s390x libepoxy-1.4.3-1.fc25.1.s390x dracut-046-2.git20170811.fc25.s390x net-snmp-libs-5.7.3-15.fc25.s390x libgo-devel-6.4.1-1.fc25.s390x libglvnd-opengl-0.2.999-24.20170818git8d4d03f.fc25.s390x sqlite-devel-3.14.2-3.fc25.s390x
cpp-6.4.1-1.fc25.s390x
git-2.9.5-1.fc25.s390x
pcre2-10.23-9.fc25.s390x python2-GitPython-2.1.5-1.fc25.noarch glusterfs-devel-3.10.5-1.fc25.s390x net-snmp-5.7.3-15.fc25.s390x rpm-plugin-systemd-inhibit-4.13.0.1-2.fc25.s390x emacs-25.2-3.fc25.s390x
libstdc++-static-6.4.1-1.fc25.s390x expat-devel-2.2.3-1.fc25.s390x perl-Time-HiRes-1.9744-1.fc25.s390x fontawesome-fonts-4.7.0-1.fc25.noarch python-markupsafe-0.23-10.fc25.s390x pytz-2016.6.1-1.fc25.noarch python2-sphinx-1.5.2-2.fc25.noarch nss-util-3.32.0-1.0.fc25.s390x nss-sysinit-3.32.0-1.1.fc25.s390x
python3-3.5.4-1.fc25.s390x selinux-policy-targeted-3.13.1-225.22.fc25.noarch vim-minimal-8.0.1030-1.fc25.s390x texlive-ifplatform-svn21156.0.4-33.fc25.1.noarch texlive-eso-pic-svn37925.2.0g-33.fc25.1.noarch texlive-xcolor-svn41044-33.fc25.1.noarch texlive-pst-eps-svn15878.1.0-33.fc25.1.noarch texlive-pst-text-svn15878.1.00-33.fc25.1.noarch texlive-rotating-svn16832.2.16b-33.fc25.1.noarch texlive-pdfpages-svn40638-33.fc25.1.noarch texlive-cm-super-svn15878.0-33.fc25.1.noarch texlive-xetex-svn41438-33.fc25.1.noarch dnf-yum-1.1.10-6.fc25.noarch libseccomp-devel-2.3.2-1.fc25.s390x gpgme-1.8.0-10.fc25.s390x
apr-util-1.5.4-3.fc24.s390x
jbigkit-libs-2.1-5.fc24.s390x
pixman-0.34.0-2.fc24.s390x
dwz-0.12-2.fc24.s390x
expect-5.45-22.fc24.s390x
libsigsegv-2.10-10.fc24.s390x fakeroot-libs-1.20.2-4.fc24.s390x m17n-lib-1.7.0-5.fc24.s390x
libverto-0.2.6-6.fc24.s390x
libXmu-1.1.2-4.fc24.s390x
libXcursor-1.1.14-6.fc24.s390x python-kitchen-1.2.4-2.fc24.noarch fakeroot-1.20.2-4.fc24.s390x
blktrace-1.1.0-3.fc24.s390x
usermode-1.111-8.fc24.s390x
kbd-2.0.3-3.fc24.s390x
libaio-devel-0.3.110-6.fc24.s390x web-assets-filesystem-5-4.fc24.noarch libgpg-error-1.24-1.fc25.s390x
findutils-4.6.0-8.fc25.s390x
libassuan-2.4.3-1.fc25.s390x
libusbx-1.0.21-1.fc25.s390x
libxslt-1.1.28-13.fc25.s390x
libmetalink-0.1.3-1.fc25.s390x perl-MIME-Base64-3.15-365.fc25.s390x ncurses-6.0-6.20160709.fc25.s390x libwayland-server-1.12.0-1.fc25.s390x perl-Fedora-VSP-0.001-4.fc25.noarch perl-libintl-perl-1.26-1.fc25.s390x shadow-utils-4.2.1-11.fc25.s390x
atk-2.22.0-1.fc25.s390x
pam-1.3.0-1.fc25.s390x
harfbuzz-icu-1.3.2-1.fc25.s390x libsecret-0.18.5-2.fc25.s390x s390utils-iucvterm-1.36.0-1.fc25.s390x python3-requests-2.10.0-4.fc25.noarch pyusb-1.0.0-2.fc25.noarch
python-enum34-1.0.4-6.fc25.noarch
pyxattr-0.5.3-8.fc25.s390x
libbabeltrace-1.4.0-3.fc25.s390x
libthai-0.1.25-1.fc25.s390x
deltarpm-3.6-17.fc25.s390x s390utils-mon_statd-1.36.0-1.fc25.s390x device-mapper-multipath-0.4.9-83.fc25.s390x python3-pygpgme-0.3-18.fc25.s390x libreport-filesystem-2.8.0-1.fc25.s390x ghc-srpm-macros-1.4.2-4.fc25.noarch rpmdevtools-8.9-1.fc25.noarch python-dnf-plugins-extras-migrate-0.0.12-4.fc25.noarch perl-IO-Socket-SSL-2.038-1.fc25.noarch perl-File-ShareDir-1.102-7.fc25.noarch tcl-8.6.6-1.fc25.s390x
bzip2-1.0.6-21.fc25.s390x
libss-1.43.3-1.fc25.s390x
libselinux-utils-2.5-13.fc25.s390x python3-enchant-1.6.8-1.fc25.noarch python2-dockerfile-parse-0.0.5-7.fc25.noarch systemd-bootchart-231-2.fc25.s390x e2fsprogs-1.43.3-1.fc25.s390x libpng-devel-1.6.27-1.fc25.s390x perl-XML-Parser-2.44-5.fc25.s390x lttng-ust-2.8.1-2.fc25.s390x libXfixes-devel-5.0.3-1.fc25.s390x libXcomposite-devel-0.4.4-8.fc24.s390x python3-javapackages-4.7.0-6.1.fc25.noarch libcephfs_jni-devel-10.2.4-2.fc25.s390x keyutils-libs-devel-1.5.9-8.fc24.s390x harfbuzz-devel-1.3.2-1.fc25.s390x libidn-devel-1.33-1.fc25.s390x
libnfs-1.9.8-2.fc24.s390x
libssh2-devel-1.8.0-1.fc25.s390x qemu-sanity-check-nodeps-1.1.5-5.fc24.s390x alsa-lib-devel-1.1.1-2.fc25.s390x
libpsl-0.17.0-1.fc25.s390x
libseccomp-2.3.2-1.fc25.s390x
json-glib-1.2.6-1.fc25.s390x python2-dnf-1.1.10-6.fc25.noarch texlive-tetex-bin-svn36770.0-33.20160520.fc25.1.noarch texlive-amsfonts-svn29208.3.04-33.fc25.1.noarch texlive-babel-svn40706-33.fc25.1.noarch texlive-colortbl-svn29803.v1.0a-33.fc25.1.noarch texlive-babelbib-svn25245.1.31-33.fc25.1.noarch texlive-footmisc-svn23330.5.5b-33.fc25.1.noarch texlive-makeindex-svn40768-33.fc25.1.noarch texlive-plain-svn40274-33.fc25.1.noarch texlive-texconfig-bin-svn29741.0-33.20160520.fc25.1.noarch texlive-zapfding-svn31835.0-33.fc25.1.noarch texlive-microtype-svn41127-33.fc25.1.noarch texlive-bookman-svn31835.0-33.fc25.1.noarch texlive-dvisvgm-def-svn41011-33.fc25.1.noarch texlive-finstrut-svn21719.0.5-33.fc25.1.noarch texlive-hyph-utf8-svn41189-33.fc25.1.noarch texlive-lualibs-svn40370-33.fc25.1.noarch python2-hawkey-0.6.4-3.fc25.s390x elfutils-libelf-0.169-1.fc25.s390x libnl3-3.2.29-3.fc25.s390x
gstreamer1-1.10.5-1.fc25.s390x polkit-libs-0.113-8.fc25.s390x
libtirpc-1.0.2-0.fc25.s390x
libteam-1.27-1.fc25.s390x
python3-pyasn1-0.2.3-1.fc25.noarch perl-File-Path-2.12-366.fc25.noarch mesa-libwayland-egl-devel-17.0.5-3.fc25.s390x libacl-devel-2.2.52-13.fc25.s390x lua-libs-5.3.4-3.fc25.s390x
quota-nls-4.03-8.fc25.noarch ghostscript-x11-9.20-9.fc25.s390x
systemd-231-17.fc25.s390x
dhcp-common-4.3.5-3.fc25.noarch vte291-devel-0.46.2-1.fc25.s390x python-devel-2.7.13-2.fc25.s390x
elfutils-0.169-1.fc25.s390x
lua-5.3.4-3.fc25.s390x python3-beautifulsoup4-4.6.0-1.fc25.noarch libmicrohttpd-0.9.55-1.fc25.s390x
screen-4.6.1-1.fc25.s390x
strace-4.18-1.fc25.s390x
libstdc++-6.4.1-1.fc25.s390x
glusterfs-3.10.5-1.fc25.s390x
file-5.29-9.fc25.s390x
libgo-6.4.1-1.fc25.s390x
tar-1.29-4.fc25.s390x
subversion-libs-1.9.7-1.fc25.s390x libglvnd-gles-0.2.999-24.20170818git8d4d03f.fc25.s390x gdk-pixbuf2-modules-2.36.9-1.fc25.s390x gcc-6.4.1-1.fc25.s390x
curl-7.51.0-9.fc25.s390x
pcre2-utf16-10.23-9.fc25.s390x mariadb-config-10.1.25-1.fc25.s390x distribution-gpg-keys-1.14-1.fc25.noarch libcurl-devel-7.51.0-9.fc25.s390x gtk3-devel-3.22.17-2.fc25.s390x krb5-devel-1.14.4-8.fc25.s390x wpa_supplicant-2.6-3.fc25.s390x fontawesome-fonts-web-4.7.0-1.fc25.noarch python2-pygments-2.2.0-7.fc25.noarch python2-babel-2.3.4-2.fc25.noarch doxygen-1.8.13-9.fc25.s390x
nspr-devel-4.16.0-1.fc25.s390x kernel-core-4.12.11-200.fc25.s390x rpmlint-1.10-3.fc25.noarch vim-enhanced-8.0.1030-1.fc25.s390x openjpeg2-2.2.0-3.fc25.s390x texlive-mparhack-svn15878.1.4-33.fc25.1.noarch texlive-pspicture-svn15878.0-33.fc25.1.noarch texlive-soul-svn15878.2.4-33.fc25.1.noarch texlive-trimspaces-svn15878.1.1-33.fc25.1.noarch texlive-varwidth-svn24104.0.92-33.fc25.1.noarch texlive-geometry-svn19716.5.6-33.fc25.1.noarch texlive-memoir-svn41203-33.fc25.1.noarch texlive-pgf-svn40966-33.fc25.1.noarch texlive-pst-coil-svn37377.1.07-33.fc25.1.noarch texlive-pst-plot-svn41242-33.fc25.1.noarch texlive-latex-bin-svn41438-33.fc25.1.noarch texlive-ucs-svn35853.2.2-33.fc25.1.noarch texlive-ae-svn15878.1.4-33.fc25.1.noarch texlive-xetex-bin-svn41091-33.20160520.fc25.1.s390x fedora-upgrade-26.1-1.fc25.noarch perl-Thread-Queue-3.12-1.fc25.noarch cdparanoia-libs-10.2-21.fc24.s390x
ustr-1.0.4-21.fc24.s390x
libusb-0.1.5-7.fc24.s390x
readline-devel-6.3-8.fc24.s390x
chkconfig-1.8-1.fc25.s390x
avahi-libs-0.6.32-4.fc25.s390x perl-Unicode-Normalize-1.25-365.fc25.s390x perl-libnet-3.10-1.fc25.noarch perl-podlators-4.09-1.fc25.noarch dbus-python-1.2.4-2.fc25.s390x libgnome-keyring-3.12.0-7.fc25.s390x python-backports-1.0-8.fc25.s390x python-pycparser-2.14-7.fc25.noarch plymouth-scripts-0.9.3-0.6.20160620git0e65b86c.fc25.s390x cronie-1.5.1-2.fc25.s390x python2-librepo-1.7.18-3.fc25.s390x libXv-1.0.11-1.fc25.s390x python2-ndg_httpsclient-0.4.0-4.fc25.noarch btrfs-progs-4.6.1-1.fc25.s390x
perl-Encode-2.88-5.fc25.s390x
cracklib-2.9.6-4.fc25.s390x python3-dnf-plugin-system-upgrade-0.7.1-4.fc25.noarch boost-random-1.60.0-10.fc25.s390x libref_array-0.1.5-29.fc25.s390x libXrender-devel-0.9.10-1.fc25.s390x javapackages-tools-4.7.0-6.1.fc25.noarch keyutils-1.5.9-8.fc24.s390x libcom_err-devel-1.43.3-1.fc25.s390x lzo-minilzo-2.08-8.fc24.s390x libusbx-devel-1.0.21-1.fc25.s390x virglrenderer-devel-0.5.0-1.20160411git61846f92f.fc25.s390x acpica-tools-20160831-1.fc25.s390x
grep-2.27-2.fc25.s390x
dnf-conf-1.1.10-6.fc25.noarch crypto-policies-20160921-4.gitf3018dd.fc25.noarch libnfsidmap-0.27-1.fc25.s390x
SDL2-2.0.5-3.fc25.s390x texlive-etex-pkg-svn39355-33.fc25.1.noarch texlive-multido-svn18302.1.42-33.fc25.1.noarch texlive-gsftopk-svn40768-33.fc25.1.noarch texlive-pst-ovl-svn40873-33.fc25.1.noarch texlive-ltabptch-svn17533.1.74d-33.fc25.1.noarch texlive-cite-svn36428.5.5-33.fc25.1.noarch texlive-fpl-svn15878.1.002-33.fc25.1.noarch texlive-mathpazo-svn15878.1.003-33.fc25.1.noarch texlive-rcs-svn15878.0-33.fc25.1.noarch texlive-type1cm-svn21820.0-33.fc25.1.noarch texlive-l3kernel-svn41246-33.fc25.1.noarch texlive-hyperref-svn41396-33.fc25.1.noarch texlive-pst-tree-svn24142.1.12-33.fc25.1.noarch texlive-sansmathaccent-svn30187.0-33.fc25.1.noarch texlive-dvipdfmx-bin-svn40273-33.20160520.fc25.1.s390x texlive-zapfchan-svn31835.0-33.fc25.1.noarch glib2-static-2.50.3-1.fc25.s390x bash-completion-2.5-1.fc25.noarch
hyphen-2.8.8-4.fc24.s390x
python3-idna-2.5-1.fc25.noarch
less-481-7.fc25.s390x
rpmconf-base-1.0.19-1.fc25.noarch
gtk2-2.24.31-2.fc25.s390x
mesa-libgbm-17.0.5-3.fc25.s390x nfs-utils-2.1.1-5.rc4.fc25.s390x
mc-4.8.19-5.fc25.s390x
pcre-static-8.41-1.fc25.s390x bind-libs-9.10.5-2.P2.fc25.s390x libproxy-0.4.15-2.fc25.s390x
file-libs-5.29-9.fc25.s390x
glibc-devel-2.24-10.fc25.s390x glusterfs-server-3.10.5-1.fc25.s390x git-core-doc-2.9.5-1.fc25.s390x python2-smmap-2.0.3-1.fc25.noarch glusterfs-api-devel-3.10.5-1.fc25.s390x gcc-gdb-plugin-6.4.1-1.fc25.s390x python3-magic-5.29-9.fc25.noarch GeoIP-GeoLite-data-2017.07-1.fc25.noarch python2-funcsigs-1.0.2-2.fc25.noarch dos2unix-7.3.4-1.fc25.s390x
gnutls-c++-3.5.15-1.fc25.s390x nss-tools-3.32.0-1.1.fc25.s390x
gpg-pubkey-a29cb19c-53bcbba6
m4-1.4.17-9.fc24.s390x
liblockfile-1.09-4.fc24.s390x
sg3_utils-1.41-3.fc24.s390x
libXinerama-1.1.3-6.fc24.s390x
libXft-2.3.2-4.fc24.s390x tcp_wrappers-libs-7.6-83.fc25.s390x perl-Text-Tabs+Wrap-2013.0523-365.fc25.noarch perl-Error-0.17024-7.fc25.noarch perl-Term-Cap-1.17-365.fc25.noarch perl-Pod-Usage-1.69-1.fc25.noarch device-mapper-persistent-data-0.6.3-1.fc25.s390x python3-six-1.10.0-3.fc25.noarch python3-pysocks-1.5.6-5.fc25.noarch python-chardet-2.3.0-1.fc25.noarch python2-cffi-1.7.0-2.fc25.s390x
gc-devel-7.4.4-1.fc25.s390x plymouth-0.9.3-0.6.20160620git0e65b86c.fc25.s390x ebtables-2.0.10-21.fc25.s390x python3-librepo-1.7.18-3.fc25.s390x at-spi2-atk-2.22.0-1.fc25.s390x avahi-autoipd-0.6.32-4.fc25.s390x pyparsing-2.1.10-1.fc25.noarch python3-pyparsing-2.1.10-1.fc25.noarch libcollection-0.7.0-29.fc25.s390x libcephfs-devel-10.2.4-2.fc25.s390x libXdamage-devel-1.1.4-8.fc24.s390x libverto-devel-0.2.6-6.fc24.s390x
snappy-1.1.3-2.fc24.s390x cairo-gobject-devel-1.14.8-1.fc25.s390x cyrus-sasl-devel-2.1.26-26.2.fc24.s390x libXi-1.7.9-1.fc25.s390x texlive-base-2016-33.20160520.fc25.noarch texlive-booktabs-svn40846-33.fc25.1.noarch texlive-lm-svn28119.2.004-33.fc25.1.noarch texlive-gsftopk-bin-svn40473-33.20160520.fc25.1.s390x texlive-tex-svn40793-33.fc25.1.noarch texlive-fancyref-svn15878.0.9c-33.fc25.1.noarch texlive-chngcntr-svn17157.1.0a-33.fc25.1.noarch texlive-fix2col-svn38770-33.fc25.1.noarch texlive-marginnote-svn41382-33.fc25.1.noarch texlive-pxfonts-svn15878.0-33.fc25.1.noarch texlive-txfonts-svn15878.0-33.fc25.1.noarch texlive-l3packages-svn41246-33.fc25.1.noarch texlive-oberdiek-svn41346-33.fc25.1.noarch texlive-pst-tools-svn34067.0.05-33.fc25.1.noarch texlive-tex-gyre-svn18651.2.004-33.fc25.1.noarch texlive-dvipdfmx-svn41149-33.fc25.1.noarch texlive-collection-fontsrecommended-svn35830.0-33.20160520.fc25.1.noarch libcacard-devel-2.5.3-1.fc25.s390x ykpers-1.18.0-2.fc25.s390x
python2-idna-2.5-1.fc25.noarch policycoreutils-2.5-20.fc25.s390x libgcrypt-1.7.8-1.fc25.s390x
pcre-8.41-1.fc25.s390x
GeoIP-1.6.11-1.fc25.s390x
ghostscript-core-9.20-9.fc25.s390x python3-cffi-1.7.0-2.fc25.s390x
json-c-0.12.1-2.fc25.s390x
vte291-0.46.2-1.fc25.s390x
gssproxy-0.7.0-9.fc25.s390x
systemtap-3.1-5.fc25.s390x mesa-libgbm-devel-17.0.5-3.fc25.s390x libgusb-0.2.10-1.fc25.s390x kernel-modules-4.12.9-200.fc25.s390x sqlite-3.14.2-3.fc25.s390x
perl-Git-2.9.5-1.fc25.noarch python2-gitdb-2.0.2-1.fc25.noarch libglvnd-devel-0.2.999-24.20170818git8d4d03f.fc25.s390x gcc-c++-6.4.1-1.fc25.s390x
python-magic-5.29-9.fc25.noarch kernel-devel-4.12.9-200.fc25.s390x python2-mock-2.0.0-2.fc25.noarch
nspr-4.16.0-1.fc25.s390x
python3-libs-3.5.4-1.fc25.s390x system-python-3.5.4-1.fc25.s390x python-async-0.6.1-9.fc22.s390x dejavu-sans-mono-fonts-2.35-3.fc24.noarch popt-1.16-7.fc24.s390x
cyrus-sasl-lib-2.1.26-26.2.fc24.s390x
xz-5.2.2-2.fc24.s390x
libpipeline-1.4.1-2.fc24.s390x
pinentry-0.9.7-2.fc24.s390x
pth-2.0.7-27.fc24.s390x
libsepol-2.5-10.fc25.s390x
libxcb-1.12-1.fc25.s390x perl-Getopt-Long-2.49.1-1.fc25.noarch avahi-glib-0.6.32-4.fc25.s390x python3-pip-8.1.2-2.fc25.noarch python3-libcomps-0.1.7-5.fc25.s390x python-slip-0.6.4-4.fc25.noarch python2-libcomps-0.1.7-5.fc25.s390x
gc-7.4.4-1.fc25.s390x
s390utils-cmsfs-1.36.0-1.fc25.s390x newt-python-0.52.19-2.fc25.s390x qt5-srpm-macros-5.7.1-1.fc25.noarch device-mapper-event-1.02.136-3.fc25.s390x perl-Class-Inspector-1.31-2.fc25.noarch libbasicobjects-0.1.1-29.fc25.s390x libradosstriper1-10.2.4-2.fc25.s390x libXxf86vm-devel-1.1.4-3.fc24.s390x zziplib-0.13.62-7.fc24.s390x
libpaper-1.1.24-12.fc24.s390x libini_config-1.3.0-29.fc25.s390x snappy-devel-1.1.3-2.fc24.s390x libcap-ng-devel-0.7.8-1.fc25.s390x libxkbcommon-devel-0.7.1-1.fc25.s390x openssl-libs-1.0.2k-1.fc25.s390x util-linux-2.28.2-2.fc25.s390x texlive-etoolbox-svn38031.2.2a-33.fc25.1.noarch texlive-dvips-svn41149-33.fc25.1.noarch texlive-latexconfig-svn40274-33.fc25.1.noarch texlive-tex-ini-files-svn40533-33.fc25.1.noarch texlive-qstest-svn15878.0-33.fc25.1.noarch texlive-cmap-svn41168-33.fc25.1.noarch texlive-luatex-bin-svn41091-33.20160520.fc25.1.s390x texlive-mflogo-svn38628-33.fc25.1.noarch texlive-sansmath-svn17997.1.1-33.fc25.1.noarch texlive-unicode-data-svn39808-33.fc25.1.noarch texlive-luaotfload-bin-svn34647.0-33.20160520.fc25.1.noarch texlive-listings-svn37534.1.6-33.fc25.1.noarch texlive-pstricks-svn41321-33.fc25.1.noarch texlive-metalogo-svn18611.0.12-33.fc25.1.noarch texlive-collection-latex-svn41011-33.20160520.fc25.1.noarch python2-dnf-plugins-core-0.1.21-5.fc25.noarch xkeyboard-config-2.20-2.fc25.noarch perl-Test-Harness-3.39-1.fc25.noarch systemd-libs-231-17.fc25.s390x python3-pycparser-2.14-7.fc25.noarch kernel-devel-4.11.10-200.fc25.s390x
gsm-1.0.17-1.fc25.s390x
python-2.7.13-2.fc25.s390x
kernel-4.11.10-200.fc25.s390x
rpmconf-1.0.19-1.fc25.noarch
teamd-1.27-1.fc25.s390x
jasper-libs-1.900.13-4.fc25.s390x glusterfs-libs-3.10.5-1.fc25.s390x libcrypt-nss-2.24-10.fc25.s390x emacs-common-25.2-3.fc25.s390x
libcurl-7.51.0-9.fc25.s390x java-1.8.0-openjdk-1.8.0.144-5.b01.fc25.s390x gcc-go-6.4.1-1.fc25.s390x
perl-XML-XPath-1.39-2.fc25.noarch python2-sphinx_rtd_theme-0.1.9-2.fc24.noarch libxml2-devel-2.9.4-2.fc25.s390x nss-softokn-devel-3.32.0-1.2.fc25.s390x nss-devel-3.32.0-1.1.fc25.s390x
libattr-2.4.47-16.fc24.s390x
libvisual-0.4.0-20.fc24.s390x
libpcap-1.7.4-2.fc24.s390x
libutempter-1.1.6-8.fc24.s390x
libgudev-230-3.fc24.s390x
popt-devel-1.16-7.fc24.s390x hicolor-icon-theme-0.15-3.fc24.noarch setup-2.10.4-1.fc25.noarch
bash-4.3.43-4.fc25.s390x
libjpeg-turbo-1.5.1-0.fc25.s390x perl-Socket-2.024-1.fc25.s390x perl-HTTP-Tiny-0.070-1.fc25.noarch
ipset-6.29-1.fc25.s390x python2-setuptools-25.1.1-1.fc25.noarch gsettings-desktop-schemas-3.22.0-1.fc25.s390x python3-setuptools-25.1.1-1.fc25.noarch python-slip-dbus-0.6.4-4.fc25.noarch python2-ply-3.8-2.fc25.noarch
dtc-1.4.2-1.fc25.s390x
guile-2.0.13-1.fc25.s390x
cronie-anacron-1.5.1-2.fc25.s390x
libXtst-1.2.3-1.fc25.s390x
iso-codes-3.70-1.fc25.noarch
s390utils-1.36.0-1.fc25.s390x python-backports-ssl_match_hostname-3.5.0.1-3.fc25.noarch fedora-cert-0.6.0.1-1.fc25.noarch dnf-plugin-system-upgrade-0.7.1-4.fc25.noarch lvm2-2.02.167-3.fc25.s390x libselinux-devel-2.5-13.fc25.s390x perl-Time-Local-1.250-1.fc25.noarch libradosstriper-devel-10.2.4-2.fc25.s390x flac-libs-1.3.2-1.fc25.s390x perl-Digest-1.17-366.fc25.noarch
teckit-2.5.1-15.fc24.s390x
libpath_utils-0.2.1-29.fc25.s390x
attr-2.4.47-16.fc24.s390x
usbredir-0.7.1-2.fc24.s390x
cairo-devel-1.14.8-1.fc25.s390x
lzo-devel-2.08-8.fc24.s390x
libcap-devel-2.25-2.fc25.s390x
libbsd-0.8.3-1.fc25.s390x texlive-url-svn32528.3.4-33.fc25.1.noarch texlive-dvips-bin-svn40987-33.20160520.fc25.1.s390x texlive-index-svn24099.4.1beta-33.fc25.1.noarch texlive-setspace-svn24881.6.7a-33.fc25.1.noarch texlive-mathtools-svn38833-33.fc25.1.noarch texlive-cm-svn32865.0-33.fc25.1.noarch texlive-graphics-def-svn41879-33.fc25.1.noarch texlive-mdwtools-svn15878.1.05.4-33.fc25.1.noarch texlive-rsfs-svn15878.0-33.fc25.1.noarch texlive-ucharcat-svn38907-33.fc25.1.noarch texlive-fontspec-svn41262-33.fc25.1.noarch texlive-showexpl-svn32737.v0.3l-33.fc25.1.noarch texlive-pstricks-add-svn40744-33.fc25.1.noarch texlive-beamer-svn36461.3.36-33.fc25.1.noarch texlive-collection-basic-svn41149-33.20160520.fc25.1.noarch xemacs-filesystem-21.5.34-20.20170124hgf412e9f093d4.fc25.noarch hawkey-0.6.4-3.fc25.s390x
bluez-libs-5.44-1.fc25.s390x
audit-libs-2.7.7-1.fc25.s390x
iproute-4.11.0-1.fc25.s390x
libICE-1.0.9-9.fc25.s390x
python3-ply-3.8-2.fc25.noarch
perl-5.24.2-387.fc25.s390x
graphite2-1.3.10-1.fc25.s390x vte-profile-0.46.2-1.fc25.s390x python-libs-2.7.13-2.fc25.s390x mesa-libGL-17.0.5-3.fc25.s390x python2-pycurl-7.43.0-6.fc25.s390x NetworkManager-1.4.4-5.fc25.s390x mesa-libEGL-devel-17.0.5-3.fc25.s390x mesa-libGLES-devel-17.0.5-3.fc25.s390x hostname-3.15-8.fc25.s390x
glibc-headers-2.24-10.fc25.s390x glusterfs-cli-3.10.5-1.fc25.s390x git-core-2.9.5-1.fc25.s390x
mock-1.4.3-1.fc25.noarch
gcc-gfortran-6.4.1-1.fc25.s390x webkitgtk4-plugin-process-gtk2-2.16.6-1.fc25.s390x perl-Module-CoreList-5.20170821-1.fc25.noarch python2-pbr-1.10.0-1.fc25.noarch
libtool-2.4.6-14.fc25.s390x
gnutls-dane-3.5.15-1.fc25.s390x kernel-4.12.11-200.fc25.s390x
gpg-pubkey-a0a7badb-52844296
readline-6.3-8.fc24.s390x
cpio-2.12-3.fc24.s390x
libXcomposite-0.4.4-8.fc24.s390x procps-ng-3.3.10-11.fc24.s390x
GConf2-3.2.6-16.fc24.s390x
xz-devel-5.2.2-2.fc24.s390x
fedora-logos-22.0.0-3.fc24.s390x gpg-pubkey-e372e838-56fd7943
kmod-libs-23-1.fc25.s390x
perl-parent-0.236-1.fc25.noarch perl-TermReadKey-2.37-1.fc25.s390x ncurses-c++-libs-6.0-6.20160709.fc25.s390x gzip-1.8-1.fc25.s390x python3-gobject-base-3.22.0-1.fc25.s390x python2-yubico-1.3.2-3.fc25.noarch s390utils-ziomon-1.36.0-1.fc25.s390x librepo-1.7.18-3.fc25.s390x
gnat-srpm-macros-4-1.fc25.noarch python-decoratortools-1.8-12.fc25.noarch m17n-db-1.7.0-7.fc25.noarch e2fsprogs-libs-1.43.3-1.fc25.s390x libvorbis-1.3.5-1.fc25.s390x
npth-1.3-1.fc25.s390x
libcephfs1-10.2.4-2.fc25.s390x wayland-devel-1.12.0-1.fc25.s390x libxcb-devel-1.12-1.fc25.s390x perl-encoding-2.19-5.fc25.s390x python3-cssselect-0.9.2-1.fc25.noarch gettext-libs-0.19.8.1-3.fc25.s390x at-spi2-atk-devel-2.22.0-1.fc25.s390x virglrenderer-0.5.0-1.20160411git61846f92f.fc25.s390x pixman-devel-0.34.0-2.fc24.s390x libnfs-devel-1.9.8-2.fc24.s390x
libblkid-2.28.2-2.fc25.s390x
glib2-devel-2.50.3-1.fc25.s390x texlive-ifxetex-svn19685.0.5-33.fc25.1.noarch texlive-caption-svn41409-33.fc25.1.noarch texlive-float-svn15878.1.3d-33.fc25.1.noarch texlive-pdftex-def-svn22653.0.06d-33.fc25.1.noarch texlive-xdvi-bin-svn40750-33.20160520.fc25.1.s390x texlive-beton-svn15878.0-33.fc25.1.noarch texlive-filecontents-svn24250.1.3-33.fc25.1.noarch texlive-lm-math-svn36915.1.959-33.fc25.1.noarch texlive-pslatex-svn16416.0-33.fc25.1.noarch texlive-times-svn35058.0-33.fc25.1.noarch texlive-breakurl-svn29901.1.40-33.fc25.1.noarch texlive-filehook-svn24280.0.5d-33.fc25.1.noarch texlive-pst-pdf-svn31660.1.1v-33.fc25.1.noarch texlive-seminar-svn34011.1.62-33.fc25.1.noarch texlive-xetexconfig-svn41133-33.fc25.1.noarch python-rpm-macros-3-12.fc25.noarch nss-pem-1.0.3-3.fc25.s390x
at-spi2-core-2.22.1-1.fc25.s390x perl-Scalar-List-Utils-1.48-1.fc25.s390x libtasn1-devel-4.12-1.fc25.s390x python3-koji-1.13.0-2.fc25.noarch
opus-1.1.5-1.fc25.s390x
elfutils-libs-0.169-1.fc25.s390x kernel-core-4.11.10-200.fc25.s390x systemd-container-231-17.fc25.s390x sudo-1.8.20p2-1.fc25.s390x
libicu-devel-57.1-5.fc25.s390x
js-jquery-2.2.4-3.fc25.noarch
krb5-libs-1.14.4-8.fc25.s390x
apr-1.6.2-1.fc25.s390x
dbus-1.11.16-1.fc25.s390x
libdrm-2.4.82-1.fc25.s390x
pcre2-utf32-10.23-9.fc25.s390x copy-jdk-configs-2.3-1.fc25.noarch libdrm-devel-2.4.82-1.fc25.s390x krb5-workstation-1.14.4-8.fc25.s390x python3-sssdconfig-1.15.3-1.fc25.noarch python2-docutils-0.13.1-3.fc25.noarch graphviz-2.38.0-39.fc25.s390x kernel-modules-4.12.11-200.fc25.s390x fedpkg-1.29-3.fc25.noarch
=== TEST BEGIN ===
Using CC: /home/fam/bin/cc
Install prefix /var/tmp/patchew-tester-tmp-lzr53l_5/src/install BIOS directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/share/qemu binary directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/bin
library directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/lib module directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/lib/qemu libexec directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/libexec include directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/include config directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/etc
local state directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/var
Manual directory /var/tmp/patchew-tester-tmp-lzr53l_5/src/install/share/man ELF interp prefix /usr/gnemul/qemu-%M
Source path /var/tmp/patchew-tester-tmp-lzr53l_5/src C compiler /home/fam/bin/cc Host C compiler cc C++ compiler c++ Objective-C compiler /home/fam/bin/cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -Werror -DHAS_LIBSSH2_SFTP_FSYNC -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DNCURSES_WIDECHAR -D_GNU_SOURCE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/libdrm LDFLAGS -Wl,--warn-common -m64 -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU s390x host big endian yes target list aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc64-softmmu ppcemb-softmmu ppc-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu unicore32-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user nios2-linux-user or1k-linux-user ppc64abi32-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user tilegx-linux-user x86_64-linux-user gprof enabled no sparse enabled no strip binaries yes profiler no static build no SDL support yes (2.0.5) GTK support yes (3.22.17) GTK GL support yes VTE support yes (0.46.2) TLS priority NORMAL GNUTLS support yes GNUTLS rnd yes libgcrypt no libgcrypt kdf no nettle yes (3.3) nettle kdf yes libtasn1 yes curses support yes virgl support yes curl support yes mingw32 support no Audio drivers oss
Block whitelist (rw)
Block whitelist (ro)
VirtFS support yes
Multipath support no
VNC support yes VNC SASL support yes VNC JPEG support yes VNC PNG support yes xen support no brlapi support yes bluez support yes Documentation yes PIE no vde support no netmap support no Linux AIO support yes ATTR/XATTR support yes Install blobs yes KVM support yes HAX support no TCG support yes TCG debug enabled no TCG interpreter no RDMA support no fdt support yes preadv support yes fdatasync yes madvise yes posix_madvise yes
libcap-ng support yes
vhost-net support yes
vhost-scsi support yes
vhost-vsock support yes
vhost-user support yes
Trace backends log spice support no rbd support yes xfsctl support no smartcard support yes libusb yes usb net redir yes OpenGL support yes OpenGL dmabufs yes libiscsi support yes libnfs support yes
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support yes
coroutine backend ucontext
coroutine pool yes
debug stack usage no
crypto afalg no
GlusterFS support yes
gcov gcov gcov enabled no TPM support yes libssh2 support yes TPM passthrough no QOM debugging yes Live block migration yes lzo support yes snappy support yes bzip2 support yes
NUMA host support no
tcmalloc support no
jemalloc support no
avx2 optimization no
replication support yes
VxHS block device no
GEN aarch64-softmmu/config-devices.mak.tmp
GEN alpha-softmmu/config-devices.mak.tmp
GEN cris-softmmu/config-devices.mak.tmp
GEN arm-softmmu/config-devices.mak.tmp
GEN cris-softmmu/config-devices.mak
GEN i386-softmmu/config-devices.mak.tmp
GEN alpha-softmmu/config-devices.mak
GEN arm-softmmu/config-devices.mak
GEN aarch64-softmmu/config-devices.mak
GEN i386-softmmu/config-devices.mak
GEN lm32-softmmu/config-devices.mak.tmp
GEN m68k-softmmu/config-devices.mak.tmp
GEN microblazeel-softmmu/config-devices.mak.tmp
GEN m68k-softmmu/config-devices.mak
GEN microblaze-softmmu/config-devices.mak.tmp
GEN mips64el-softmmu/config-devices.mak.tmp
GEN microblazeel-softmmu/config-devices.mak
GEN lm32-softmmu/config-devices.mak
GEN mips64-softmmu/config-devices.mak.tmp
GEN mipsel-softmmu/config-devices.mak.tmp
GEN microblaze-softmmu/config-devices.mak
GEN mips-softmmu/config-devices.mak.tmp
GEN mips64el-softmmu/config-devices.mak
GEN moxie-softmmu/config-devices.mak.tmp
GEN mips64-softmmu/config-devices.mak
GEN mipsel-softmmu/config-devices.mak
GEN nios2-softmmu/config-devices.mak.tmp
GEN or1k-softmmu/config-devices.mak.tmp
GEN moxie-softmmu/config-devices.mak
GEN or1k-softmmu/config-devices.mak
GEN ppc64-softmmu/config-devices.mak.tmp
GEN ppcemb-softmmu/config-devices.mak.tmp
GEN nios2-softmmu/config-devices.mak
GEN mips-softmmu/config-devices.mak
GEN s390x-softmmu/config-devices.mak.tmp
GEN ppc-softmmu/config-devices.mak.tmp
GEN s390x-softmmu/config-devices.mak
GEN sh4eb-softmmu/config-devices.mak.tmp
GEN ppc64-softmmu/config-devices.mak
GEN sh4-softmmu/config-devices.mak.tmp
GEN ppc-softmmu/config-devices.mak
GEN ppcemb-softmmu/config-devices.mak
GEN sparc64-softmmu/config-devices.mak.tmp
GEN sh4eb-softmmu/config-devices.mak
GEN sparc-softmmu/config-devices.mak.tmp
GEN tricore-softmmu/config-devices.mak.tmp
GEN sparc-softmmu/config-devices.mak
GEN tricore-softmmu/config-devices.mak
GEN unicore32-softmmu/config-devices.mak.tmp
GEN sh4-softmmu/config-devices.mak
GEN x86_64-softmmu/config-devices.mak.tmp
GEN sparc64-softmmu/config-devices.mak
GEN xtensaeb-softmmu/config-devices.mak.tmp
GEN xtensa-softmmu/config-devices.mak.tmp
GEN unicore32-softmmu/config-devices.mak
GEN aarch64-linux-user/config-devices.mak.tmp
GEN x86_64-softmmu/config-devices.mak
GEN xtensaeb-softmmu/config-devices.mak
GEN alpha-linux-user/config-devices.mak.tmp
GEN armeb-linux-user/config-devices.mak.tmp
GEN xtensa-softmmu/config-devices.mak
GEN alpha-linux-user/config-devices.mak
GEN aarch64-linux-user/config-devices.mak
GEN arm-linux-user/config-devices.mak.tmp
GEN cris-linux-user/config-devices.mak.tmp
GEN hppa-linux-user/config-devices.mak.tmp
GEN armeb-linux-user/config-devices.mak
GEN hppa-linux-user/config-devices.mak
GEN arm-linux-user/config-devices.mak
GEN i386-linux-user/config-devices.mak.tmp
GEN cris-linux-user/config-devices.mak
GEN microblazeel-linux-user/config-devices.mak.tmp
GEN m68k-linux-user/config-devices.mak.tmp
GEN microblaze-linux-user/config-devices.mak.tmp
GEN i386-linux-user/config-devices.mak
GEN microblazeel-linux-user/config-devices.mak
GEN m68k-linux-user/config-devices.mak
GEN mips64el-linux-user/config-devices.mak.tmp
GEN mips64-linux-user/config-devices.mak.tmp
GEN mipsel-linux-user/config-devices.mak.tmp
GEN microblaze-linux-user/config-devices.mak
GEN mips64el-linux-user/config-devices.mak
GEN mipsel-linux-user/config-devices.mak
GEN mips-linux-user/config-devices.mak.tmp
GEN mipsn32el-linux-user/config-devices.mak.tmp
GEN mipsn32-linux-user/config-devices.mak.tmp
GEN mipsn32-linux-user/config-devices.mak
GEN mips64-linux-user/config-devices.mak
GEN or1k-linux-user/config-devices.mak.tmp
GEN mipsn32el-linux-user/config-devices.mak
GEN nios2-linux-user/config-devices.mak.tmp
GEN mips-linux-user/config-devices.mak
GEN ppc64abi32-linux-user/config-devices.mak.tmp
GEN or1k-linux-user/config-devices.mak
GEN ppc64le-linux-user/config-devices.mak.tmp
GEN ppc64-linux-user/config-devices.mak.tmp
GEN nios2-linux-user/config-devices.mak
GEN ppc64abi32-linux-user/config-devices.mak
GEN ppc64le-linux-user/config-devices.mak
GEN s390x-linux-user/config-devices.mak.tmp
GEN sh4eb-linux-user/config-devices.mak.tmp
GEN ppc-linux-user/config-devices.mak.tmp
GEN ppc64-linux-user/config-devices.mak
GEN sh4-linux-user/config-devices.mak.tmp
GEN sh4eb-linux-user/config-devices.mak
GEN sh4-linux-user/config-devices.mak
GEN ppc-linux-user/config-devices.mak
GEN sparc32plus-linux-user/config-devices.mak.tmp
GEN s390x-linux-user/config-devices.mak
GEN sparc64-linux-user/config-devices.mak.tmp
GEN sparc-linux-user/config-devices.mak.tmp
GEN tilegx-linux-user/config-devices.mak.tmp
GEN sparc32plus-linux-user/config-devices.mak
GEN sparc64-linux-user/config-devices.mak
GEN sparc-linux-user/config-devices.mak
GEN x86_64-linux-user/config-devices.mak.tmp
GEN tilegx-linux-user/config-devices.mak
GEN config-host.h
GEN x86_64-linux-user/config-devices.mak
GEN qemu-options.def
GEN qmp-commands.h
GEN qapi-types.h
GEN qapi-visit.h
GEN qapi-event.h
GEN qapi-types.c
GEN qmp-marshal.c
GEN qapi-visit.c
GEN qapi-event.c
GEN qmp-introspect.h
GEN qmp-introspect.c
GEN trace/generated-tcg-tracers.h
GEN trace/generated-helpers-wrappers.h
GEN trace/generated-helpers.h
GEN trace/generated-helpers.c
GEN module_block.h
GEN tests/test-qapi-types.h
GEN tests/test-qapi-visit.h
GEN tests/test-qmp-commands.h
GEN tests/test-qapi-event.h
GEN tests/test-qmp-introspect.h
GEN trace-root.h
GEN util/trace.h
GEN crypto/trace.h
GEN io/trace.h
GEN migration/trace.h
GEN block/trace.h
GEN chardev/trace.h
GEN hw/block/trace.h
GEN hw/block/dataplane/trace.h
GEN hw/char/trace.h
GEN hw/intc/trace.h
GEN hw/net/trace.h
GEN hw/virtio/trace.h
GEN hw/audio/trace.h
GEN hw/misc/trace.h
GEN hw/scsi/trace.h
GEN hw/usb/trace.h
GEN hw/nvram/trace.h
GEN hw/display/trace.h
GEN hw/input/trace.h
GEN hw/dma/trace.h
GEN hw/timer/trace.h
GEN hw/sparc/trace.h
GEN hw/sd/trace.h
GEN hw/isa/trace.h
GEN hw/mem/trace.h
GEN hw/i386/xen/trace.h
GEN hw/i386/trace.h
GEN hw/9pfs/trace.h
GEN hw/ppc/trace.h
GEN hw/pci/trace.h
GEN hw/s390x/trace.h
GEN hw/vfio/trace.h
GEN hw/acpi/trace.h
GEN hw/arm/trace.h
GEN hw/alpha/trace.h
GEN hw/xen/trace.h
GEN hw/ide/trace.h
GEN ui/trace.h
GEN audio/trace.h
GEN net/trace.h
GEN target/arm/trace.h
GEN target/i386/trace.h
GEN target/mips/trace.h
GEN target/sparc/trace.h
GEN target/s390x/trace.h
GEN target/ppc/trace.h
GEN qom/trace.h
GEN linux-user/trace.h
GEN qapi/trace.h
GEN accel/kvm/trace.h
GEN accel/tcg/trace.h
GEN nbd/trace.h
GEN scsi/trace.h
GEN trace-root.c
GEN util/trace.c
GEN crypto/trace.c
GEN io/trace.c
GEN migration/trace.c
GEN chardev/trace.c
GEN block/trace.c
GEN hw/block/trace.c
GEN hw/block/dataplane/trace.c
GEN hw/char/trace.c
GEN hw/intc/trace.c
GEN hw/net/trace.c
GEN hw/virtio/trace.c
GEN hw/audio/trace.c
GEN hw/misc/trace.c
GEN hw/usb/trace.c
GEN hw/scsi/trace.c
GEN hw/nvram/trace.c
GEN hw/display/trace.c
GEN hw/input/trace.c
GEN hw/timer/trace.c
GEN hw/dma/trace.c
GEN hw/sparc/trace.c
GEN hw/sd/trace.c
GEN hw/isa/trace.c
GEN hw/mem/trace.c
GEN hw/i386/trace.c
GEN hw/i386/xen/trace.c
GEN hw/9pfs/trace.c
GEN hw/ppc/trace.c
GEN hw/pci/trace.c
GEN hw/s390x/trace.c
GEN hw/vfio/trace.c
GEN hw/acpi/trace.c
GEN hw/arm/trace.c
GEN hw/alpha/trace.c
GEN hw/xen/trace.c
GEN hw/ide/trace.c
GEN ui/trace.c
GEN audio/trace.c
GEN net/trace.c
GEN target/arm/trace.c
GEN target/i386/trace.c
GEN target/mips/trace.c
GEN target/sparc/trace.c
GEN target/s390x/trace.c
GEN target/ppc/trace.c
GEN qom/trace.c
GEN linux-user/trace.c
GEN qapi/trace.c
GEN accel/tcg/trace.c
GEN accel/kvm/trace.c
GEN nbd/trace.c
GEN scsi/trace.c
GEN config-all-devices.mak
CC tests/qemu-iotests/socket_scm_helper.o
CC qmp-introspect.o
CC qapi-visit.o
CC qapi-types.o
CC qapi-event.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qapi-util.o
CC qapi/qmp-event.o
CC qobject/qnull.o
CC qobject/qnum.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qlit.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/lockcnt.o
CC util/bufferiszero.o
CC util/aiocb.o
CC util/async.o
CC util/thread-pool.o
CC util/qemu-timer.o
CC util/main-loop.o
CC util/iohandler.o
CC util/aio-posix.o
CC util/compatfd.o
CC util/event_notifier-posix.o
CC util/mmap-alloc.o
CC util/oslib-posix.o
CC util/qemu-openpty.o
CC util/qemu-thread-posix.o
CC util/memfd.o
CC util/envlist.o
CC util/path.o
CC util/module.o
CC util/host-utils.o
CC util/bitmap.o
CC util/hbitmap.o
CC util/bitops.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/id.o
CC util/qemu-error.o
CC util/iov.o
CC util/qemu-sockets.o
CC util/qemu-config.o
CC util/uri.o
CC util/notify.o
CC util/qemu-option.o
CC util/qemu-progress.o
CC util/keyval.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-io.o
CC util/qemu-coroutine-sleep.o
CC util/coroutine-ucontext.o
CC util/buffer.o
CC util/timed-average.o
CC util/base64.o
CC util/log.o
CC util/qdist.o
CC util/qht.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC trace-root.o
CC util/trace.o
CC crypto/trace.o
CC io/trace.o
CC migration/trace.o
CC block/trace.o
CC chardev/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/intc/trace.o
CC hw/net/trace.o
CC hw/virtio/trace.o
CC hw/audio/trace.o
CC hw/misc/trace.o
CC hw/scsi/trace.o
CC hw/usb/trace.o
CC hw/nvram/trace.o
CC hw/display/trace.o
CC hw/input/trace.o
CC hw/timer/trace.o
CC hw/dma/trace.o
CC hw/sparc/trace.o
CC hw/sd/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/9pfs/trace.o
CC hw/ppc/trace.o
CC hw/s390x/trace.o
CC hw/pci/trace.o
CC hw/vfio/trace.o
CC hw/acpi/trace.o
CC hw/arm/trace.o
CC hw/alpha/trace.o
CC hw/xen/trace.o
CC hw/ide/trace.o
CC ui/trace.o
CC audio/trace.o
CC net/trace.o
CC target/arm/trace.o
CC target/i386/trace.o
CC target/mips/trace.o
CC target/sparc/trace.o
CC target/s390x/trace.o
CC target/ppc/trace.o
CC qom/trace.o
CC linux-user/trace.o
CC qapi/trace.o
CC accel/tcg/trace.o
CC accel/kvm/trace.o
CC nbd/trace.o
CC scsi/trace.o
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/blk-commit-all.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/dump.o
CC stubs/error-printf.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/linux-aio.o
CC stubs/machine-init-done.o
CC stubs/change-state-handler.o
CC stubs/migr-blocker.o
CC stubs/monitor.o
CC stubs/notify-event.o
CC stubs/qtest.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/slirp.o
CC stubs/set-fd-handler.o
CC stubs/sysbus.o
CC stubs/trace-control.o
CC stubs/uuid.o
CC stubs/vmstate.o
CC stubs/vm-stop.o
CC stubs/qmp_pc_dimm.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-common.o
CC stubs/xen-hvm.o
CC stubs/pci-host-piix.o
GEN qemu-options.texi
GEN docs/version.texi
GEN qemu-monitor.texi
GEN qemu-img-cmds.texi
GEN qemu-monitor-info.texi
GEN qemu-img.1
GEN qemu-nbd.8
GEN qemu-ga.8
GEN docs/interop/qemu-qmp-qapi.texi
GEN docs/interop/qemu-ga-qapi.texi
GEN fsdev/virtfs-proxy-helper.1
GEN qga/qapi-generated/qga-qapi-types.h
GEN qga/qapi-generated/qga-qapi-visit.h
GEN qga/qapi-generated/qga-qmp-commands.h
GEN qga/qapi-generated/qga-qapi-types.c
GEN qga/qapi-generated/qga-qapi-visit.c
GEN qga/qapi-generated/qga-qmp-marshal.c
CC contrib/ivshmem-client/ivshmem-client.o
CC contrib/ivshmem-client/main.o
CC contrib/ivshmem-server/ivshmem-server.o
CC contrib/ivshmem-server/main.o
CC qemu-nbd.o
CC block.o
CC blockjob.o
CC qemu-io-cmds.o
CC replication.o
CC block/raw-format.o
CC block/qcow.o
CC block/vdi.o
CC block/vmdk.o
CC block/cloop.o
CC block/bochs.o
CC block/vpc.o
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qcow2-bitmap.o
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
CC block/vhdx-endian.o
CC block/vhdx-log.o
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-posix.o
CC block/linux-aio.o
CC block/mirror.o
CC block/null.o
CC block/commit.o
CC block/io.o
CC block/throttle-groups.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
CC block/iscsi-opts.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/backup.o
CC block/replication.o
CC block/throttle.o
CC nbd/server.o
CC block/crypto.o
CC nbd/client.o
CC nbd/common.o
CC scsi/utils.o
CC scsi/pr-manager.o
CC scsi/pr-manager-helper.o
CC block/iscsi.o
CC block/nfs.o
CC block/curl.o
CC block/rbd.o
CC block/ssh.o
CC block/gluster.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/random-gnutls.o
CC crypto/pbkdf.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen.o
CC crypto/ivgen-plain.o
CC crypto/ivgen-plain64.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
CC io/channel.o
CC io/channel-buffer.o
CC io/channel-command.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-websock.o
CC io/channel-util.o
CC io/dns-resolver.o
CC io/task.o
CC qom/object.o
CC qom/container.o
CC qom/qom-qobject.o
CC qom/object_interfaces.o
GEN qemu-img-cmds.h
CC qemu-io.o
CC fsdev/virtfs-proxy-helper.o
CC fsdev/9p-iov-marshal.o
CC fsdev/9p-marshal.o
CC scsi/qemu-pr-helper.o
CC qemu-bridge-helper.o
CC blockdev.o
CC blockdev-nbd.o
CC bootdevice.o
CC iothread.o
CC qdev-monitor.o
CC device-hotplug.o
CC os-posix.o
CC bt-host.o
CC bt-vhci.o
CC dma-helpers.o
CC tpm.o
CC vl.o
CC qemu-seccomp.o
CC device_tree.o
CC qmp-marshal.o
CC qmp.o
CC hmp.o
CC cpus-common.o
CC audio/audio.o
CC audio/noaudio.o
CC audio/wavaudio.o
CC audio/mixeng.o
CC audio/sdlaudio.o
CC audio/ossaudio.o
CC audio/wavcapture.o
CC backends/rng.o
CC backends/rng-egd.o
CC backends/rng-random.o
CC backends/tpm.o
CC backends/hostmem.o
CC backends/hostmem-file.o
CC backends/hostmem-ram.o
CC backends/cryptodev.o
CC backends/cryptodev-builtin.o
CC block/stream.o
CC chardev/msmouse.o
CC chardev/wctablet.o
CC chardev/testdev.o
CC disas/alpha.o
CC chardev/baum.o
CC disas/arm.o
CXX disas/arm-a64.o
CC disas/cris.o
CC disas/hppa.o
CC disas/i386.o
CC disas/m68k.o
CC disas/microblaze.o
CC disas/mips.o
CC disas/nios2.o
CC disas/moxie.o
CC disas/s390.o
CC disas/ppc.o
CC disas/sh4.o
CC disas/sparc.o
CC disas/lm32.o
CXX disas/libvixl/vixl/utils.o
CXX disas/libvixl/vixl/compiler-intrinsics.o
CXX disas/libvixl/vixl/a64/instructions-a64.o
CXX disas/libvixl/vixl/a64/decoder-a64.o
CXX disas/libvixl/vixl/a64/disasm-a64.o
CC fsdev/qemu-fsdev.o
CC fsdev/qemu-fsdev-opts.o
CC fsdev/qemu-fsdev-throttle.o
CC fsdev/qemu-fsdev-dummy.o
CC hw/9pfs/9p-util.o
CC hw/9pfs/9p.o
CC hw/9pfs/9p-local.o
CC hw/9pfs/9p-xattr.o
CC hw/9pfs/9p-xattr-user.o
CC hw/9pfs/9p-posix-acl.o
CC hw/9pfs/coth.o
CC hw/9pfs/cofs.o
CC hw/9pfs/codir.o
CC hw/9pfs/cofile.o
CC hw/9pfs/coxattr.o
CC hw/9pfs/9p-synth.o
CC hw/9pfs/9p-handle.o
CC hw/9pfs/9p-proxy.o
CC hw/acpi/core.o
CC hw/acpi/piix4.o
CC hw/acpi/pcihp.o
CC hw/acpi/ich9.o
CC hw/acpi/tco.o
CC hw/acpi/cpu_hotplug.o
CC hw/acpi/memory_hotplug.o
CC hw/acpi/cpu.o
CC hw/acpi/nvdimm.o
CC hw/acpi/vmgenid.o
CC hw/acpi/acpi_interface.o
CC hw/acpi/bios-linker-loader.o
CC hw/acpi/aml-build.o
CC hw/acpi/ipmi.o
CC hw/acpi/acpi-stub.o
CC hw/acpi/ipmi-stub.o
CC hw/audio/sb16.o
CC hw/audio/es1370.o
CC hw/audio/ac97.o
CC hw/audio/fmopl.o
CC hw/audio/adlib.o
CC hw/audio/gus.o
CC hw/audio/gusemu_hal.o
CC hw/audio/gusemu_mixer.o
CC hw/audio/cs4231a.o
CC hw/audio/intel-hda.o
CC hw/audio/hda-codec.o
CC hw/audio/pcspk.o
CC hw/audio/wm8750.o
CC hw/audio/pl041.o
CC hw/audio/lm4549.o
CC hw/audio/cs4231.o
CC hw/audio/marvell_88w8618.o
CC hw/audio/soundhw.o
CC hw/audio/milkymist-ac97.o
CC hw/block/block.o
CC hw/block/cdrom.o
CC hw/block/hd-geometry.o
CC hw/block/fdc.o
CC hw/block/m25p80.o
CC hw/block/nand.o
CC hw/block/pflash_cfi01.o
CC hw/block/ecc.o
CC hw/block/pflash_cfi02.o
CC hw/block/onenand.o
CC hw/bt/core.o
CC hw/block/nvme.o
CC hw/bt/l2cap.o
CC hw/bt/sdp.o
CC hw/bt/hci.o
CC hw/bt/hid.o
CC hw/bt/hci-csr.o
CC hw/char/ipoctal232.o
CC hw/char/escc.o
CC hw/char/parallel.o
CC hw/char/pl011.o
CC hw/char/serial.o
CC hw/char/serial-isa.o
CC hw/char/serial-pci.o
CC hw/char/virtio-console.o
CC hw/char/xilinx_uartlite.o
CC hw/char/cadence_uart.o
CC hw/char/etraxfs_ser.o
CC hw/char/cmsdk-apb-uart.o
CC hw/char/grlib_apbuart.o
CC hw/char/debugcon.o
CC hw/char/imx_serial.o
CC hw/char/lm32_juart.o
CC hw/char/lm32_uart.o
CC hw/char/milkymist-uart.o
CC hw/char/sclpconsole.o
CC hw/char/sclpconsole-lm.o
CC hw/core/qdev.o
CC hw/core/qdev-properties.o
CC hw/core/bus.o
CC hw/core/reset.o
CC hw/core/fw-path-provider.o
CC hw/core/irq.o
CC hw/core/hotplug.o
CC hw/core/nmi.o
CC hw/core/empty_slot.o
CC hw/core/stream.o
CC hw/core/ptimer.o
CC hw/core/sysbus.o
CC hw/core/machine.o
CC hw/core/loader.o
CC hw/core/loader-fit.o
CC hw/core/qdev-properties-system.o
CC hw/core/register.o
CC hw/core/or-irq.o
CC hw/core/platform-bus.o
CC hw/cpu/core.o
CC hw/display/ads7846.o
CC hw/display/cirrus_vga.o
CC hw/display/g364fb.o
CC hw/display/jazz_led.o
CC hw/display/pl110.o
CC hw/display/ssd0303.o
CC hw/display/ssd0323.o
CC hw/display/vga-pci.o
CC hw/display/vga-isa.o
CC hw/display/vga-isa-mm.o
CC hw/display/vmware_vga.o
CC hw/display/blizzard.o
CC hw/display/exynos4210_fimd.o
CC hw/display/framebuffer.o
CC hw/display/milkymist-vgafb.o
CC hw/display/tc6393xb.o
CC hw/display/milkymist-tmu2.o
CC hw/dma/puv3_dma.o
CC hw/dma/rc4030.o
CC hw/dma/pl080.o
CC hw/dma/pl330.o
CC hw/dma/i82374.o
CC hw/dma/i8257.o
CC hw/dma/xilinx_axidma.o
CC hw/dma/xlnx-zynq-devcfg.o
CC hw/dma/etraxfs_dma.o
CC hw/dma/sparc32_dma.o
CC hw/dma/sun4m_iommu.o
CC hw/gpio/max7310.o
CC hw/gpio/pl061.o
CC hw/gpio/puv3_gpio.o
CC hw/gpio/zaurus.o
CC hw/gpio/mpc8xxx.o
CC hw/gpio/gpio_key.o
CC hw/i2c/core.o
CC hw/i2c/smbus.o
CC hw/i2c/smbus_eeprom.o
CC hw/i2c/i2c-ddc.o
CC hw/i2c/versatile_i2c.o
CC hw/i2c/smbus_ich9.o
CC hw/i2c/pm_smbus.o
CC hw/i2c/bitbang_i2c.o
CC hw/i2c/exynos4210_i2c.o
CC hw/i2c/imx_i2c.o
CC hw/i2c/aspeed_i2c.o
CC hw/ide/core.o
CC hw/ide/atapi.o
CC hw/ide/qdev.o
CC hw/ide/pci.o
CC hw/ide/isa.o
CC hw/ide/piix.o
CC hw/ide/cmd646.o
CC hw/ide/macio.o
CC hw/ide/via.o
CC hw/ide/mmio.o
CC hw/ide/microdrive.o
CC hw/ide/ahci.o
CC hw/ide/ich.o
CC hw/input/adb.o
CC hw/input/hid.o
CC hw/input/lm832x.o
CC hw/input/pckbd.o
CC hw/input/pl050.o
CC hw/input/ps2.o
CC hw/input/stellaris_input.o
CC hw/input/tsc2005.o
CC hw/input/vmmouse.o
CC hw/input/virtio-input.o
CC hw/input/virtio-input-hid.o
CC hw/input/virtio-input-host.o
CC hw/intc/heathrow_pic.o
CC hw/intc/i8259_common.o
CC hw/intc/pl190.o
CC hw/intc/i8259.o
CC hw/intc/puv3_intc.o
CC hw/intc/xilinx_intc.o
CC hw/intc/etraxfs_pic.o
CC hw/intc/imx_avic.o
CC hw/intc/lm32_pic.o
CC hw/intc/realview_gic.o
CC hw/intc/slavio_intctl.o
CC hw/intc/arm_gic_common.o
CC hw/intc/ioapic_common.o
CC hw/intc/arm_gic.o
CC hw/intc/arm_gicv2m.o
CC hw/intc/arm_gicv3_common.o
CC hw/intc/arm_gicv3.o
CC hw/intc/arm_gicv3_dist.o
CC hw/intc/arm_gicv3_redist.o
CC hw/intc/arm_gicv3_its_common.o
CC hw/intc/openpic.o
CC hw/intc/intc.o
CC hw/ipack/ipack.o
CC hw/ipack/tpci200.o
CC hw/ipmi/ipmi.o
CC hw/ipmi/ipmi_bmc_sim.o
CC hw/ipmi/ipmi_bmc_extern.o
CC hw/ipmi/isa_ipmi_kcs.o
CC hw/ipmi/isa_ipmi_bt.o
CC hw/isa/isa-bus.o
CC hw/isa/apm.o
CC hw/isa/i82378.o
CC hw/isa/pc87312.o
CC hw/isa/piix4.o
CC hw/isa/vt82c686.o
CC hw/mem/pc-dimm.o
CC hw/mem/nvdimm.o
CC hw/misc/applesmc.o
CC hw/misc/max111x.o
CC hw/misc/tmp105.o
CC hw/misc/tmp421.o
CC hw/misc/debugexit.o
CC hw/misc/sga.o
CC hw/misc/pc-testdev.o
CC hw/misc/pci-testdev.o
CC hw/misc/unimp.o
CC hw/misc/edu.o
CC hw/misc/arm_l2x0.o
CC hw/misc/arm_integrator_debug.o
CC hw/misc/a9scu.o
CC hw/misc/arm11scu.o
CC hw/misc/puv3_pm.o
CC hw/misc/macio/cuda.o
CC hw/misc/macio/macio.o
CC hw/misc/macio/mac_dbdma.o
CC hw/net/dp8393x.o
CC hw/net/ne2000.o
CC hw/net/eepro100.o
CC hw/net/pcnet-pci.o
CC hw/net/pcnet.o
CC hw/net/e1000.o
CC hw/net/e1000x_common.o
CC hw/net/net_tx_pkt.o
CC hw/net/net_rx_pkt.o
CC hw/net/e1000e_core.o
CC hw/net/e1000e.o
CC hw/net/rtl8139.o
CC hw/net/vmxnet3.o
CC hw/net/smc91c111.o
CC hw/net/lan9118.o
CC hw/net/ne2000-isa.o
CC hw/net/opencores_eth.o
CC hw/net/xgmac.o
CC hw/net/mipsnet.o
CC hw/net/xilinx_axienet.o
CC hw/net/allwinner_emac.o
CC hw/net/imx_fec.o
CC hw/net/cadence_gem.o
CC hw/net/stellaris_enet.o
CC hw/net/lance.o
CC hw/net/sunhme.o
CC hw/net/ftgmac100.o
CC hw/net/sungem.o
CC hw/net/rocker/rocker.o
CC hw/net/rocker/rocker_fp.o
CC hw/net/rocker/rocker_desc.o
CC hw/net/rocker/rocker_world.o
CC hw/net/rocker/rocker_of_dpa.o
CC hw/nvram/ds1225y.o
CC hw/nvram/eeprom93xx.o
CC hw/nvram/fw_cfg.o
CC hw/nvram/chrp_nvram.o
CC hw/nvram/mac_nvram.o
CC hw/pci-bridge/pci_bridge_dev.o
CC hw/pci-bridge/pcie_pci_bridge.o
CC hw/pci-bridge/pcie_root_port.o
CC hw/pci-bridge/gen_pcie_root_port.o
CC hw/pci-bridge/pci_expander_bridge.o
CC hw/pci-bridge/xio3130_upstream.o
CC hw/pci-bridge/xio3130_downstream.o
CC hw/pci-bridge/ioh3420.o
CC hw/pci-bridge/i82801b11.o
CC hw/pci-bridge/dec.o
CC hw/pci-host/prep.o
CC hw/pci-host/pam.o
CC hw/pci-host/grackle.o
CC hw/pci-host/uninorth.o
CC hw/pci-host/ppce500.o
CC hw/pci-host/versatile.o
CC hw/pci-host/apb.o
CC hw/pci-host/bonito.o
CC hw/pci-host/piix.o
CC hw/pci-host/q35.o
CC hw/pci-host/gpex.o
CC hw/pci-host/xilinx-pcie.o
CC hw/pci/pci.o
CC hw/pci/pci_bridge.o
CC hw/pci/msix.o
CC hw/pci/msi.o
CC hw/pci/shpc.o
CC hw/pci/slotid_cap.o
CC hw/pci/pci_host.o
CC hw/pci/pcie_host.o
CC hw/pci/pcie_aer.o
CC hw/pci/pcie.o
CC hw/pci/pcie_port.o
CC hw/pci/pci-stub.o
CC hw/pcmcia/pcmcia.o
CC hw/scsi/scsi-disk.o
CC hw/scsi/scsi-generic.o
CC hw/scsi/scsi-bus.o
CC hw/scsi/lsi53c895a.o
CC hw/scsi/mptsas.o
CC hw/scsi/mptconfig.o
CC hw/scsi/mptendian.o
CC hw/scsi/megasas.o
CC hw/scsi/vmw_pvscsi.o
CC hw/scsi/esp.o
CC hw/scsi/esp-pci.o
CC hw/sd/pl181.o
CC hw/sd/ssi-sd.o
CC hw/sd/sd.o
CC hw/sd/sdhci.o
CC hw/sd/core.o
CC hw/smbios/smbios.o
CC hw/smbios/smbios_type_38.o
CC hw/smbios/smbios-stub.o
CC hw/smbios/smbios_type_38-stub.o
CC hw/ssi/pl022.o
CC hw/ssi/ssi.o
CC hw/ssi/xilinx_spi.o
CC hw/ssi/xilinx_spips.o
CC hw/ssi/stm32f2xx_spi.o
CC hw/ssi/aspeed_smc.o
CC hw/ssi/mss-spi.o
CC hw/timer/arm_mptimer.o
CC hw/timer/arm_timer.o
CC hw/timer/armv7m_systick.o
CC hw/timer/a9gtimer.o
CC hw/timer/cadence_ttc.o
CC hw/timer/ds1338.o
CC hw/timer/hpet.o
CC hw/timer/i8254.o
CC hw/timer/i8254_common.o
CC hw/timer/m48t59.o
CC hw/timer/m48t59-isa.o
CC hw/timer/pl031.o
CC hw/timer/puv3_ost.o
CC hw/timer/twl92230.o
CC hw/timer/xilinx_timer.o
CC hw/timer/slavio_timer.o
CC hw/timer/etraxfs_timer.o
CC hw/timer/grlib_gptimer.o
CC hw/timer/imx_epit.o
CC hw/timer/imx_gpt.o
CC hw/timer/lm32_timer.o
CC hw/timer/stm32f2xx_timer.o
CC hw/timer/milkymist-sysctl.o
CC hw/timer/aspeed_timer.o
CC hw/timer/sun4v-rtc.o
CC hw/timer/cmsdk-apb-timer.o
CC hw/timer/mss-timer.o
CC hw/tpm/tpm_tis.o
CC hw/usb/core.o
CC hw/usb/combined-packet.o
CC hw/usb/bus.o
CC hw/usb/libhw.o
CC hw/usb/desc.o
CC hw/usb/desc-msos.o
CC hw/usb/hcd-uhci.o
CC hw/usb/hcd-ohci.o
CC hw/usb/hcd-ehci.o
CC hw/usb/hcd-ehci-pci.o
CC hw/usb/hcd-ehci-sysbus.o
CC hw/usb/hcd-xhci.o
CC hw/usb/hcd-xhci-nec.o
CC hw/usb/hcd-musb.o
CC hw/usb/dev-hub.o
CC hw/usb/dev-hid.o
CC hw/usb/dev-wacom.o
CC hw/usb/dev-storage.o
CC hw/usb/dev-uas.o
CC hw/usb/dev-audio.o
CC hw/usb/dev-serial.o
CC hw/usb/dev-network.o
CC hw/usb/dev-bluetooth.o
CC hw/usb/dev-smartcard-reader.o
CC hw/usb/ccid-card-passthru.o
CC hw/usb/dev-mtp.o
CC hw/usb/ccid-card-emulated.o
CC hw/usb/redirect.o
CC hw/usb/quirks.o
CC hw/usb/host-stub.o
CC hw/virtio/virtio-rng.o
CC hw/virtio/virtio-pci.o
CC hw/virtio/virtio-bus.o
CC hw/virtio/virtio-mmio.o
CC hw/virtio/vhost-stub.o
CC hw/watchdog/watchdog.o
CC hw/watchdog/wdt_i6300esb.o
CC hw/watchdog/wdt_ib700.o
CC hw/watchdog/wdt_diag288.o
CC hw/watchdog/wdt_aspeed.o
CC migration/migration.o
CC migration/fd.o
CC migration/socket.o
CC migration/exec.o
CC migration/tls.o
CC migration/channel.o
CC migration/savevm.o
CC migration/colo-comm.o
CC migration/colo.o
CC migration/colo-failover.o
CC migration/vmstate.o
CC migration/page_cache.o
CC migration/vmstate-types.o
CC migration/qemu-file.o
CC migration/global_state.o
CC migration/qemu-file-channel.o
CC migration/xbzrle.o
CC migration/postcopy-ram.o
CC migration/qjson.o
CC migration/block.o
CC net/net.o
CC net/queue.o
CC net/checksum.o
CC net/util.o
CC net/hub.o
CC net/socket.o
CC net/dump.o
CC net/eth.o
CC net/l2tpv3.o
CC net/vhost-user.o
CC net/slirp.o
CC net/filter.o
CC net/filter-buffer.o
CC net/filter-mirror.o
CC net/colo.o
CC net/colo-compare.o
CC net/filter-rewriter.o
CC net/filter-replay.o
CC net/tap.o
CC net/tap-linux.o
CC qom/cpu.o
CC replay/replay.o
CC replay/replay-internal.o
CC replay/replay-events.o
CC replay/replay-input.o
CC replay/replay-time.o
CC replay/replay-char.o
CC replay/replay-snapshot.o
CC replay/replay-net.o
CC replay/replay-audio.o
CC slirp/cksum.o
CC slirp/if.o
CC slirp/ip_icmp.o
CC slirp/ip6_icmp.o
CC slirp/ip6_input.o
CC slirp/ip6_output.o
CC slirp/ip_input.o
CC slirp/ip_output.o
CC slirp/dnssearch.o
CC slirp/dhcpv6.o
CC slirp/slirp.o
CC slirp/mbuf.o
CC slirp/misc.o
CC slirp/sbuf.o
CC slirp/socket.o
CC slirp/tcp_input.o
CC slirp/tcp_output.o
CC slirp/tcp_subr.o
CC slirp/tcp_timer.o
CC slirp/udp.o
CC slirp/udp6.o
CC slirp/bootp.o
CC slirp/tftp.o
CC slirp/ndp_table.o
CC slirp/arp_table.o
CC slirp/ncsi.o
CC ui/keymaps.o
CC ui/console.o
CC ui/cursor.o
CC ui/qemu-pixman.o
CC ui/input.o
CC ui/input-keymap.o
CC ui/input-legacy.o
CC ui/input-linux.o
CC ui/sdl2.o
CC ui/sdl2-input.o
CC ui/sdl2-2d.o
CC ui/sdl2-gl.o
CC ui/x_keymap.o
CC ui/curses.o
CC ui/vnc.o
CC ui/vnc-enc-zlib.o
CC ui/vnc-enc-hextile.o
CC ui/vnc-enc-tight.o
CC ui/vnc-palette.o
CC ui/vnc-enc-zrle.o
CC ui/vnc-auth-vencrypt.o
CC ui/vnc-auth-sasl.o
CC ui/vnc-ws.o
CC ui/vnc-jobs.o
CC ui/gtk.o
CC ui/shader.o
VERT ui/shader/texture-blit-vert.h
FRAG ui/shader/texture-blit-frag.h
CC ui/egl-helpers.o
/var/tmp/patchew-tester-tmp-lzr53l_5/src/ui/shader.c: In function ‘qemu_gl_create_compile_shader’:
/var/tmp/patchew-tester-tmp-lzr53l_5/src/ui/shader.c:88:9: error: implicit declaration of function ‘error_report’ [-Werror=implicit-function-declaration]
error_report("%s: compile %s error: %s", __func__,
^~~~~~~~~~~~/var/tmp/patchew-tester-tmp-lzr53l_5/src/ui/shader.c:88:9: error: nested extern declaration of ‘error_report’ [-Werror=nested-externs]
cc1: all warnings being treated as errors/var/tmp/patchew-tester-tmp-lzr53l_5/src/rules.mak:66: recipe for target 'ui/shader.o' failed
make: *** [ui/shader.o] Error 1
make: *** Waiting for unfinished jobs....
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]