From: Hans de Goede Date: Sun, 26 Jun 2016 11:56:01 +0000 (+0200) Subject: sunxi: spl: Fix DRAM info printing X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=cd8b35d2e14f598ab0e5c8a211495b675b978915;p=u-boot.git sunxi: spl: Fix DRAM info printing The switch to simple_printf was causing the SPL dram info to show as: DRAM: u MiB This fixes this by switching from %lu to %d for printing the DRAM size. Signed-off-by: Hans de Goede Acked-by: Ian Campbell --- diff --git a/board/sunxi/board.c b/board/sunxi/board.c index d09cf6dfb5..c8bf3169d1 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -529,7 +529,7 @@ void sunxi_board_init(void) #endif printf("DRAM:"); ramsize = sunxi_dram_init(); - printf(" %lu MiB\n", ramsize >> 20); + printf(" %d MiB\n", (int)(ramsize >> 20)); if (!ramsize) hang();