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>
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 @@
#endif
printf("DRAM:");
ramsize = sunxi_dram_init();
- printf(" %lu MiB\n", ramsize >> 20);
+ printf(" %d MiB\n", (int)(ramsize >> 20));
if (!ramsize)
hang();