aboutsummaryrefslogtreecommitdiff
path: root/hw/imx_avic.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-07-12 10:59:02 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-07-12 10:59:53 +0000
commit40291d61461c4619928a83a640205d71c72b155a (patch)
tree9ce8a285d615af002319575214580213fd385857 /hw/imx_avic.c
parented336850e830711a3b940a1d311b5958f439f342 (diff)
hw/imx_avic.c: Avoid format error when target_phys_addr_t is 64 bits
Add a missing cast to avoid gcc complaining about format string errors when printing an expression based on a target_phys_addr_t. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Chubb <peter.chubb@nicta.com.au>
Diffstat (limited to 'hw/imx_avic.c')
-rw-r--r--hw/imx_avic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/imx_avic.c b/hw/imx_avic.c
index 25f47f331b..4f010e8ee2 100644
--- a/hw/imx_avic.c
+++ b/hw/imx_avic.c
@@ -267,7 +267,7 @@ static void imx_avic_write(void *opaque, target_phys_addr_t offset,
/* Vector Registers not yet supported */
if (offset >= 0x100 && offset <= 0x2fc) {
IPRINTF("imx_avic_write to vector register %d ignored\n",
- (offset - 0x100) >> 2);
+ (unsigned int)((offset - 0x100) >> 2));
return;
}