mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/gpio/zaurus.c: Use LOG_GUEST_ERROR for bad guest register accesses
Instead of logging guest accesses to invalid register offsets in this device using zaurus_printf() (which just prints to stderr), use the usual qemu_log_mask(LOG_GUEST_ERROR,...). Since this was the only use of the zaurus_printf() macro outside spitz.c, we can move the definition of that macro from sharpsl.h to spitz.c. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20200628142429.17111-14-peter.maydell@linaro.org
This commit is contained in:
parent
eb2dc887a4
commit
a0a8cf78e0
3 changed files with 10 additions and 8 deletions
|
@ -62,6 +62,9 @@ typedef struct {
|
|||
#define SPITZ_MACHINE_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(SpitzMachineClass, klass, TYPE_SPITZ_MACHINE)
|
||||
|
||||
#define zaurus_printf(format, ...) \
|
||||
fprintf(stderr, "%s: " format, __func__, ##__VA_ARGS__)
|
||||
|
||||
#undef REG_FMT
|
||||
#define REG_FMT "0x%02lx"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue