bios: Fix warning on 64-bit
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 9 May 2020 17:43:37 +0000 (19:43 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 9 May 2020 17:44:43 +0000 (19:44 +0200)
This fixes an incorrect printf format specifier

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
litex/soc/software/bios/sdram.c

index e7e754c653d023cd5d00a5d76d83cc2915c2c95e..2b89c0980d38e9d11dbf5054db517307cfdd2094 100644 (file)
@@ -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)