From: Benjamin Herrenschmidt Date: Sat, 9 May 2020 17:43:37 +0000 (+0200) Subject: bios: Fix warning on 64-bit X-Git-Tag: 24jan2021_ls180~368 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d70220b80882ffb1043946ebba5b420ec8bab56;p=litex.git bios: Fix warning on 64-bit This fixes an incorrect printf format specifier Signed-off-by: Benjamin Herrenschmidt --- 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)