Skip to content
Snippets Groups Projects
Commit cd8b35d2 authored by Hans de Goede's avatar Hans de Goede
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
parent 0e1e587f
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment