All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/imx_avic.c: Avoid format error when target_phys_addr_t is 64 bits
@ 2012-07-10 12:34 Peter Maydell
  2012-07-10 22:34 ` Peter Chubb
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Maydell @ 2012-07-10 12:34 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Chubb, patches

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(-)

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] hw/imx_avic.c: Avoid format error when target_phys_addr_t is 64 bits
  2012-07-10 12:34 [Qemu-devel] [PATCH] hw/imx_avic.c: Avoid format error when target_phys_addr_t is 64 bits Peter Maydell
@ 2012-07-10 22:34 ` Peter Chubb
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Chubb @ 2012-07-10 22:34 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Peter Chubb, qemu-devel, patches

>>>>> "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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-10 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 12:34 [Qemu-devel] [PATCH] hw/imx_avic.c: Avoid format error when target_phys_addr_t is 64 bits Peter Maydell
2012-07-10 22:34 ` Peter Chubb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.