hw/imx_avic.c: Avoid format error when target_phys_addr_t is 64 bits
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Jul 2012 10:59:02 +0000 (10:59 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Jul 2012 10:59:53 +0000 (10:59 +0000)
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>
hw/imx_avic.c

index 25f47f331b3b2376685802614e72d296ed9cdb53..4f010e8ee238aba1e09d130d62c6d48ae01c54e7 100644 (file)
@@ -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;
     }