sunxi: spl: Fix DRAM info printing
PATCH 1/1 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 <[email protected]>
--- board/sunxi/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/sunxi/board.c +1 -1
@@ -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 ();
Signature · 1 line
2.7.4
PATCH 1/1 sunxi: spl: Fix DRAM info printing
Quoted 7 lines · Hans de Goede
The switch to
simple_printfwas 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 <[email protected]>
Acked-by Ian Campbell <[email protected]>