[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 52/58] ppc405: use RAM_ADDR_FMT instead of %08lx
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 52/58] ppc405: use RAM_ADDR_FMT instead of %08lx |
Date: |
Wed, 14 Sep 2011 10:43:16 +0200 |
From: Stefan Hajnoczi <address@hidden>
The RAM_ADDR_FMT macro hides the type of ram_addr_t so that format
strings can be safely used. Make sure to use RAM_ADDR_FMT so that the
build works on 32-bit hosts with Xen enabled. Whether Xen should affect
ppc TCG targets is questionable but a separate issue.
Signed-off-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
hw/ppc405_boards.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/ppc405_boards.c b/hw/ppc405_boards.c
index e6c8ac6..712a6be 100644
--- a/hw/ppc405_boards.c
+++ b/hw/ppc405_boards.c
@@ -213,7 +213,8 @@ static void ref405ep_init (ram_addr_t ram_size,
sram_size = 512 * 1024;
sram_offset = qemu_ram_alloc(NULL, "ef405ep.sram", sram_size);
#ifdef DEBUG_BOARD_INIT
- printf("%s: register SRAM at offset %08lx\n", __func__, sram_offset);
+ printf("%s: register SRAM at offset " RAM_ADDR_FMT "\n",
+ __func__, sram_offset);
#endif
cpu_register_physical_memory(0xFFF00000, sram_size,
sram_offset | IO_MEM_RAM);
@@ -357,7 +358,7 @@ static void ref405ep_init (ram_addr_t ram_size,
#ifdef DEBUG_BOARD_INIT
printf("%s: Done\n", __func__);
#endif
- printf("bdloc %016lx\n", (unsigned long)bdloc);
+ printf("bdloc " RAM_ADDR_FMT "\n", bdloc);
}
static QEMUMachine ref405ep_machine = {
--
1.6.0.2
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 05/58] PPC: Add CPU local MMIO regions to MPIC, (continued)
[Qemu-ppc] [PATCH 47/58] Implement POWER7's CFAR in TCG, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 37/58] pseries: Add a phandle to the xicp interrupt controller device tree node, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 13/58] PPC: E500: Generate IRQ lines for many CPUs, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 43/58] KVM: Update kernel headers, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 52/58] ppc405: use RAM_ADDR_FMT instead of %08lx,
Alexander Graf <=
[Qemu-ppc] [PATCH 11/58] PPC: Bump MPIC up to 32 supported CPUs, Alexander Graf, 2011/09/14
[Qemu-ppc] [PATCH 51/58] Gdbstub: handle read of fpscr, Alexander Graf, 2011/09/14