Patchwork [U-Boot,06/10] GCC4.6: Squash warnings in pmc405de.c

login
register
mail settings
Submitter Marek Vasut
Date Oct. 25, 2011, 9:38 a.m.
Message ID <1319535510-20737-7-git-send-email-marek.vasut@gmail.com>
Download mbox | patch
Permalink /patch/121532/
State Accepted
Headers show

Comments

Marek Vasut - Oct. 25, 2011, 9:38 a.m.
pmc405de.c: In function 'do_painit':
pmc405de.c:444: warning: format '%08x' expects type 'unsigned int', but argument
2 has type 'phys_size_t'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
---
 board/esd/pmc405de/pmc405de.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Wolfgang Denk - Oct. 27, 2011, 9:57 p.m.
Dear Marek Vasut,

In message <1319535510-20737-7-git-send-email-marek.vasut@gmail.com> you wrote:
> pmc405de.c: In function 'do_painit':
> pmc405de.c:444: warning: format '%08x' expects type 'unsigned int', but argument
> 2 has type 'phys_size_t'
> 
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Mike Frysinger <vapier@gentoo.org>
> ---
>  board/esd/pmc405de/pmc405de.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/board/esd/pmc405de/pmc405de.c b/board/esd/pmc405de/pmc405de.c
index c266ebe..a60809a 100644
--- a/board/esd/pmc405de/pmc405de.c
+++ b/board/esd/pmc405de/pmc405de.c
@@ -441,7 +441,7 @@  int do_painit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	 */
 	param = base - (pram << 10);
 	printf("PARAM: @%08x\n", param);
-	debug("memsize=0x%08x, base=0x%08x\n", gd->bd->bi_memsize, base);
+	debug("memsize=0x%08x, base=0x%08x\n", (u32)gd->bd->bi_memsize, base);
 
 	/* clear entire PA ram */
 	memset((void*)param, 0, (pram << 10));