From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoZeX-00085h-Kf for qemu-devel@nongnu.org; Tue, 10 Jul 2012 08:35:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoZeV-0006u6-TG for qemu-devel@nongnu.org; Tue, 10 Jul 2012 08:34:53 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:38712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoZeV-0006tI-MW for qemu-devel@nongnu.org; Tue, 10 Jul 2012 08:34:51 -0400 From: Peter Maydell Date: Tue, 10 Jul 2012 13:34:39 +0100 Message-Id: <1341923679-30673-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] hw/imx_avic.c: Avoid format error when target_phys_addr_t is 64 bits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Chubb , patches@linaro.org 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 --- 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; } -- 1.7.1