aboutsummaryrefslogtreecommitdiff
path: root/hw/arm_l2x0.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-10-30 07:45:10 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-10-30 07:45:10 +0000
commita35d4e422328eeb770b7b0c08bb073e8940b158e (patch)
treecef3e9ac1f023e76ec4cfbda3a0d9be520c7202f /hw/arm_l2x0.c
parent0c896f066213fcb06063f68ad7bfc75800591846 (diff)
hw/arm_l2x0: 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_l2x0.c')
-rw-r--r--hw/arm_l2x0.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/arm_l2x0.c b/hw/arm_l2x0.c
index 8f5921c3a6..6abf0ee160 100644
--- a/hw/arm_l2x0.c
+++ b/hw/arm_l2x0.c
@@ -87,7 +87,8 @@ static uint64_t l2x0_priv_read(void *opaque, hwaddr offset,
case 0xF80:
return 0;
default:
- fprintf(stderr, "l2x0_priv_read: Bad offset %x\n", (int)offset);
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "l2x0_priv_read: Bad offset %x\n", (int)offset);
break;
}
return 0;
@@ -128,7 +129,8 @@ static void l2x0_priv_write(void *opaque, hwaddr offset,
case 0xF80:
return;
default:
- fprintf(stderr, "l2x0_priv_write: Bad offset %x\n", (int)offset);
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "l2x0_priv_write: Bad offset %x\n", (int)offset);
break;
}
}