summaryrefslogtreecommitdiffstats
path: root/hw/arm_sysctl.c
diff options
context:
space:
mode:
authorPeter Maydell2012-10-30 08:45:10 +0100
committerPeter Maydell2012-10-30 08:45:10 +0100
commit0c896f066213fcb06063f68ad7bfc75800591846 (patch)
treea1e3024449ce166634bdd76872c95c2864ae8d22 /hw/arm_sysctl.c
parenthw/armv7m_nvic: Use LOG_GUEST_ERROR and LOG_UNIMP (diff)
downloadqemu-0c896f066213fcb06063f68ad7bfc75800591846.tar.gz
qemu-0c896f066213fcb06063f68ad7bfc75800591846.tar.xz
qemu-0c896f066213fcb06063f68ad7bfc75800591846.zip
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>
Diffstat (limited to 'hw/arm_sysctl.c')
-rw-r--r--hw/arm_sysctl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c
index 26318e14d5..58eb98216d 100644
--- a/hw/arm_sysctl.c
+++ b/hw/arm_sysctl.c
@@ -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;
}
}