bios: Fix warning on 64-bit

This fixes an incorrect printf format specifier

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2020-05-09 19:43:37 +02:00 committed by Florent Kermarrec
parent fbbbdf03b5
commit 2d70220b80
1 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,7 @@ static void memspeed(void)
end = timer0_value_read(); end = timer0_value_read();
read_speed = (8*MEMTEST_DATA_SIZE*(CONFIG_CLOCK_FREQUENCY/1000000))/(start - end); read_speed = (8*MEMTEST_DATA_SIZE*(CONFIG_CLOCK_FREQUENCY/1000000))/(start - end);
printf("Memspeed Writes: %dMbps Reads: %dMbps\n", write_speed, read_speed); printf("Memspeed Writes: %ldMbps Reads: %ldMbps\n", write_speed, read_speed);
} }
int memtest(void) int memtest(void)