[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 04/18] hw/sh4/r2d: Use error_report instead of fprintf to stde
From: |
BALATON Zoltan |
Subject: |
[PATCH v3 04/18] hw/sh4/r2d: Use error_report instead of fprintf to stderr |
Date: |
Wed, 27 Oct 2021 23:54:31 +0200 |
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/sh4/r2d.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c
index 57ccae7249..72759413f3 100644
--- a/hw/sh4/r2d.c
+++ b/hw/sh4/r2d.c
@@ -26,6 +26,7 @@
#include "qemu/osdep.h"
#include "qemu/units.h"
#include "qapi/error.h"
+#include "qemu/error-report.h"
#include "cpu.h"
#include "hw/sysbus.h"
#include "hw/sh4/sh.h"
@@ -324,7 +325,7 @@ static void r2d_init(MachineState *machine)
SDRAM_BASE + LINUX_LOAD_OFFSET,
INITRD_LOAD_OFFSET -
LINUX_LOAD_OFFSET);
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);
}
@@ -345,7 +346,7 @@ static void r2d_init(MachineState *machine)
SDRAM_SIZE - INITRD_LOAD_OFFSET);
if (initrd_size < 0) {
- fprintf(stderr, "qemu: could not load initrd '%s'\n",
initrd_filename);
+ error_report("qemu: could not load initrd '%s'", initrd_filename);
exit(1);
}
--
2.21.4
- [PATCH v3 09/18] hw/intc/sh_intc: Turn some defines into an enum, (continued)
- [PATCH v3 09/18] hw/intc/sh_intc: Turn some defines into an enum, BALATON Zoltan, 2021/10/27
- [PATCH v3 15/18] hw/sh4/sh_intc: Inline and drop sh_intc_source() function, BALATON Zoltan, 2021/10/27
- [PATCH v3 10/18] hw/intc/sh_intc: Rename iomem region, BALATON Zoltan, 2021/10/27
- [PATCH v3 11/18] hw/intc/sh_intc: Drop another useless macro, BALATON Zoltan, 2021/10/27
- [PATCH v3 03/18] hw/sh4: Change debug printfs to traces, BALATON Zoltan, 2021/10/27
- [PATCH v3 08/18] hw/intc/sh_intc: Use existing macro instead of local one, BALATON Zoltan, 2021/10/27
- [PATCH v3 04/18] hw/sh4/r2d: Use error_report instead of fprintf to stderr,
BALATON Zoltan <=
- [PATCH v3 12/18] hw/intc/sh_intc: Move sh_intc_register() closer to its only user, BALATON Zoltan, 2021/10/27
- [PATCH v3 16/18] hw/intc/sh_intc: Replace abort() with g_assert_not_reached(), BALATON Zoltan, 2021/10/27
- [PATCH v3 18/18] hw/intc/sh_intc: Simplify allocating sources array, BALATON Zoltan, 2021/10/27
- [PATCH v3 17/18] hw/intc/sh_intc: Avoid using continue in loops, BALATON Zoltan, 2021/10/27