mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
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>
This commit is contained in:
parent
0e1e587ff4
commit
cd8b35d2e1
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue