[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 02/11] hw//sh4: Use qemu_log instead of fprintf to stderr
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v2 02/11] hw//sh4: Use qemu_log instead of fprintf to stderr |
Date: |
Wed, 27 Oct 2021 17:54:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
On 10/27/21 15:46, BALATON Zoltan wrote:
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> hw/char/sh_serial.c | 7 ++++---
> hw/sh4/sh7750.c | 13 ++++++-------
> 2 files changed, 10 insertions(+), 10 deletions(-)
> case SH7750_GPIOIC_A7:
> s->gpioic = mem_value;
> if (mem_value != 0) {
> - fprintf(stderr, "I/O interrupts not implemented\n");
> + qemu_log_mask(LOG_UNIMP, "I/O interrupts not implemented\n");
> abort();
This change is annoying. Before you'd get an error message and the abort
signal. Now if you don't use "-d unimp" you get an abort without
explanation. Can we use error_report() instead?
> }
> return;
>
- Re: [PATCH v2 05/11] hw/char/sh_serial: Rename type sh_serial_state to SHSerialState, (continued)
- [PATCH v2 01/11] hw/sh4: Fix a typo in a comment, BALATON Zoltan, 2021/10/27
- [PATCH v2 10/11] hw/intc/sh_intc: Clean up iomem region, BALATON Zoltan, 2021/10/27
- [PATCH v2 11/11] hw/intc/sh_intc: Drop another useless macro, BALATON Zoltan, 2021/10/27
- [PATCH v2 02/11] hw//sh4: Use qemu_log instead of fprintf to stderr, BALATON Zoltan, 2021/10/27
- Re: [PATCH v2 02/11] hw//sh4: Use qemu_log instead of fprintf to stderr,
Philippe Mathieu-Daudé <=
- [PATCH v2 06/11] hw/char/sh_serial: QOM-ify, BALATON Zoltan, 2021/10/27
- [PATCH v2 07/11] hw/char/sh_serial: Add device id to trace output, BALATON Zoltan, 2021/10/27
- [PATCH v2 03/11] hw/sh4: Change debug printfs to traces, BALATON Zoltan, 2021/10/27
- [PATCH v2 08/11] hw/intc/sh_intc: Use existing macro instead of local one, BALATON Zoltan, 2021/10/27
- [PATCH v2 09/11] hw/intc/sh_intc: Turn some defines into an enum, BALATON Zoltan, 2021/10/27