summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-06-26 13:56:01 +0200
committerHans de Goede <hdegoede@redhat.com>2016-07-02 13:50:53 +0200
commitcd8b35d2e14f598ab0e5c8a211495b675b978915 (patch)
tree33835910670f33c6550811a0b98a4aceb3db0042 /board
parent0e1e587ff4fc2d81ad4f6313f02c5ca4c8ceea01 (diff)
downloadu-boot-imx-cd8b35d2e14f598ab0e5c8a211495b675b978915.zip
u-boot-imx-cd8b35d2e14f598ab0e5c8a211495b675b978915.tar.gz
u-boot-imx-cd8b35d2e14f598ab0e5c8a211495b675b978915.tar.bz2
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 <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'board')
-rw-r--r--board/sunxi/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index d09cf6d..c8bf316 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();