Message ID | 1341923679-30673-1-git-send-email-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 40291d61461c4619928a83a640205d71c72b155a |
Headers | show |
>>>>> "Peter" == Peter Maydell <peter.maydell@linaro.org> writes: Peter> Add a missing cast to avoid gcc complaining about format string Peter> errors when printing an expression based on a Peter> target_phys_addr_t. Peter> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Chubb <peter.chubb@nicta.com.au> -- Dr Peter Chubb peter.chubb AT nicta.com.au http://www.ssrg.nicta.com.au Software Systems Research Group/NICTA
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; }
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> --- hw/imx_avic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)