From 2d70220b80882ffb1043946ebba5b420ec8bab56 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sat, 9 May 2020 19:43:37 +0200 Subject: [PATCH] bios: Fix warning on 64-bit This fixes an incorrect printf format specifier Signed-off-by: Benjamin Herrenschmidt --- litex/soc/software/bios/sdram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index e7e754c6..2b89c098 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -903,7 +903,7 @@ static void memspeed(void) end = timer0_value_read(); 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) -- 2.30.2