]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
GCC4.6: Squash warning in cmd_pmc440.c
authorMarek Vasut <marek.vasut@gmail.com>
Fri, 21 Oct 2011 14:17:17 +0000 (14:17 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 21:54:02 +0000 (23:54 +0200)
cmd_pmc440.c: In function 'do_painit':
cmd_pmc440.c:371: 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/pmc440/cmd_pmc440.c

index 200d7ee30d3323aa9eb782a2b17a0b0dcdd90080..02028768f94e38dd15bf29575713359efd29e889 100644 (file)
@@ -368,7 +368,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));