qemu-e2k/hw/misc
Thomas Huth 372a87a1d9 Do not use %m in common code to print error messages
The %m format specifier is an extension from glibc - and when compiling
QEMU for NetBSD, the compiler correctly complains, e.g.:

/home/qemu/qemu-test.ELjfrQ/src/util/main-loop.c: In function 'sigfd_handler':
/home/qemu/qemu-test.ELjfrQ/src/util/main-loop.c:64:13: warning: %m is only
 allowed in syslog(3) like functions [-Wformat=]
             printf("read from sigfd returned %zd: %m\n", len);
             ^
Let's use g_strerror() here instead, which is an easy-to-use wrapper
around the thread-safe strerror_r() function.

While we're at it, also convert the "printf()" in main-loop.c into
the preferred "error_report()".

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20191018130716.25438-1-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-10-22 09:38:42 +02:00
..
macio sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
a9scu.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
applesmc.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
arm11scu.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
arm_integrator_debug.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
arm_l2x0.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
arm_sysctl.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
armsse-cpuid.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
armsse-mhu.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
aspeed_scu.c aspeed/sdmc: Add AST2600 support 2019-10-15 18:09:04 +01:00
aspeed_sdmc.c aspeed/sdmc: Add AST2600 support 2019-10-15 18:09:04 +01:00
aspeed_xdma.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
auxbus.c Include qemu/module.h where needed, drop it from qemu-common.h 2019-06-12 13:18:33 +02:00
bcm2835_mbox.c hw/misc/bcm2835_mbox: Add trace events 2019-10-15 18:09:05 +01:00
bcm2835_property.c hw/misc/bcm2835_mbox: Add trace events 2019-10-15 18:09:05 +01:00
bcm2835_rng.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
cbus.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
debugexit.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
eccmemctl.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
edu.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
exynos4210_clk.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
exynos4210_pmu.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
exynos4210_rng.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
grlib_ahb_apb_pnp.c leon3: introduce the plug and play mechanism 2019-05-17 09:17:11 +01:00
imx2_wdt.c Include qemu/module.h where needed, drop it from qemu-common.h 2019-06-12 13:18:33 +02:00
imx6_ccm.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
imx6_src.c hw/core: Move cpu.c, cpu.h from qom/ to hw/core/ 2019-08-21 13:24:01 +02:00
imx6ul_ccm.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
imx7_ccm.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
imx7_gpr.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
imx7_snvs.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
imx25_ccm.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
imx31_ccm.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
imx_ccm.c Include qemu/module.h where needed, drop it from qemu-common.h 2019-06-12 13:18:33 +02:00
iotkit-secctl.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
iotkit-sysctl.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
iotkit-sysinfo.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
ivshmem.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
Kconfig hw/misc: Add a config switch for the "unimplemented" device 2019-08-20 09:11:17 +02:00
Makefile.objs hw/misc: Mark most objects as "common" code to speed up compilation a litte bit 2019-09-10 09:38:33 +01:00
max111x.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
milkymist-hpdmc.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
milkymist-pfpu.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
mips_cmgcr.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
mips_cpc.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
mips_itu.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
mos6522.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
mps2-fpgaio.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
mps2-scc.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
msf2-sysreg.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
mst_fpga.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
nrf51_rng.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
omap_clk.c Include hw/irq.h a lot less 2019-08-16 13:31:52 +02:00
omap_gpmc.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
omap_l4.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
omap_sdrc.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
omap_tap.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
pc-testdev.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
pca9552.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
pci-testdev.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
puv3_pm.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
pvpanic.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
sga.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
slavio_misc.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
stm32f2xx_syscfg.c Include qemu/module.h where needed, drop it from qemu-common.h 2019-06-12 13:18:33 +02:00
tmp105.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
tmp105.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
tmp421.c Do not use %m in common code to print error messages 2019-10-22 09:38:42 +02:00
trace-events hw/misc/bcm2835_mbox: Add trace events 2019-10-15 18:09:05 +01:00
tz-mpc.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
tz-msc.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
tz-ppc.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
unimp.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
vmcoreinfo.c hw/misc/vmcoreinfo: Add comment about reset handler 2019-10-15 18:18:08 -03:00
zynq_slcr.c target-arm queue: 2019-08-16 17:21:40 +01:00
zynq-xadc.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00