From c97338dca0197abad7f0c789ad61d45940f67011 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 22 May 2012 14:29:52 +0000 Subject: [PATCH] hw/a9mpcore: Fix compilation failure if physaddrs are 64 bit Add a cast to a logging printf to avoid a compilation failure if target_phys_addr_t is a 64 bit type. (This is better than using TARGET_FMT_plx because we really don't need a full 16 digit hex string to print the offset into a device.) Signed-off-by: Peter Maydell Reviewed-by: Eric Blake --- hw/a9mpcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/a9mpcore.c b/hw/a9mpcore.c index c2ff74d4b6..ebd5b29173 100644 --- a/hw/a9mpcore.c +++ b/hw/a9mpcore.c @@ -75,7 +75,7 @@ static void a9_scu_write(void *opaque, target_phys_addr_t offset, break; default: fprintf(stderr, "Invalid size %u in write to a9 scu register %x\n", - size, offset); + size, (unsigned)offset); return; } -- GitLab