diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2012-07-12 10:59:02 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-07-12 10:59:53 +0000 |
commit | 40291d61461c4619928a83a640205d71c72b155a (patch) | |
tree | 9ce8a285d615af002319575214580213fd385857 /hw/imx_avic.c | |
parent | ed336850e830711a3b940a1d311b5958f439f342 (diff) | |
download | qemu-40291d61461c4619928a83a640205d71c72b155a.zip qemu-40291d61461c4619928a83a640205d71c72b155a.tar.gz qemu-40291d61461c4619928a83a640205d71c72b155a.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/imx_avic.c b/hw/imx_avic.c index 25f47f3..4f010e8 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; } |