mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
hw/arm/versatilepb: Convert printfs to LOG_GUEST_ERROR
Convert some printf() calls for attempts to access nonexistent registers into LOG_GUEST_ERROR logging. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250227170117.1726895-6-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
a2e46dbe0a
commit
5ae3ca2d17
1 changed files with 5 additions and 2 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "qom/object.h"
|
||||
#include "audio/audio.h"
|
||||
#include "target/arm/cpu-qom.h"
|
||||
#include "qemu/log.h"
|
||||
|
||||
#define VERSATILE_FLASH_ADDR 0x34000000
|
||||
#define VERSATILE_FLASH_SIZE (64 * 1024 * 1024)
|
||||
|
@ -110,7 +111,8 @@ static uint64_t vpb_sic_read(void *opaque, hwaddr offset,
|
|||
case 8: /* PICENABLE */
|
||||
return s->pic_enable;
|
||||
default:
|
||||
printf ("vpb_sic_read: Bad register offset 0x%x\n", (int)offset);
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"vpb_sic_read: Bad register offset 0x%x\n", (int)offset);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -144,7 +146,8 @@ static void vpb_sic_write(void *opaque, hwaddr offset,
|
|||
vpb_sic_update_pic(s);
|
||||
break;
|
||||
default:
|
||||
printf ("vpb_sic_write: Bad register offset 0x%x\n", (int)offset);
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"vpb_sic_write: Bad register offset 0x%x\n", (int)offset);
|
||||
return;
|
||||
}
|
||||
vpb_sic_update(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue