mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 22:33:36 +08:00
hw/arm_sysctl: Use LOG_GUEST_ERROR
Use LOG_GUEST_ERROR to report bad guest accesses. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
e72e3ffc3d
commit
0c896f0662
@ -184,7 +184,9 @@ static uint64_t arm_sysctl_read(void *opaque, hwaddr offset,
|
||||
return s->sys_cfgstat;
|
||||
default:
|
||||
bad_reg:
|
||||
printf ("arm_sysctl_read: Bad register offset 0x%x\n", (int)offset);
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"arm_sysctl_read: Bad register offset 0x%x\n",
|
||||
(int)offset);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -339,7 +341,9 @@ static void arm_sysctl_write(void *opaque, hwaddr offset,
|
||||
return;
|
||||
default:
|
||||
bad_reg:
|
||||
printf ("arm_sysctl_write: Bad register offset 0x%x\n", (int)offset);
|
||||
qemu_log_mask(LOG_GUEST_ERROR,
|
||||
"arm_sysctl_write: Bad register offset 0x%x\n",
|
||||
(int)offset);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user