diff --git a/board/sunxi/board.c b/board/sunxi/board.c index d09cf6dfb59437d198a506bb419180952bac6dfb..c8bf3169d12b94cb300f1505bdd2ddb0b3e835a4 100644 --- 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();