projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e1e587
)
sunxi: spl: Fix DRAM info printing
author
Hans de Goede
<hdegoede@redhat.com>
Sun, 26 Jun 2016 11:56:01 +0000
(13:56 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Sat, 2 Jul 2016 11:50:53 +0000
(13:50 +0200)
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>
board/sunxi/board.c
patch
|
blob
|
history
diff --git
a/board/sunxi/board.c
b/board/sunxi/board.c
index d09cf6dfb59437d198a506bb419180952bac6dfb..c8bf3169d12b94cb300f1505bdd2ddb0b3e835a4 100644
(file)
--- 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();