From: Jean-Christophe PLAGNIOL-VILLARD Date: Mon, 14 Jul 2008 19:03:05 +0200 Subject: [U-Boot-Users] [PATCH] Fix some more printf() format problems. In-Reply-To: References: <20080714150934.GB21260@game.jcrosoft.org> Message-ID: <20080714170305.GA26405@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >> >>> cpuid, CONFIG_NR_CPUS - 1); >>> return 1; >>> } >>> diff --git a/cpu/mpc85xx/mp.c b/cpu/mpc85xx/mp.c >>> index a527cf3..75ceba9 100644 >>> --- a/cpu/mpc85xx/mp.c >>> +++ b/cpu/mpc85xx/mp.c >>> @@ -50,12 +50,12 @@ int cpu_status(int nr) >>> >>> if (nr == id) { >>> table = (u32 *)get_spin_addr(); >>> - printf("table base @ 0x%08x\n", table); >>> + printf("table base @ 0x%08x\n", (u32)table); >> why not use %p? it's a pointer. > > do we support %p in u-boot? yes we support it. Best Regards, J.