From 84e3a7772414814b200b49cb93fc9cd4514f5bbe Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Fri, 15 Jan 2021 11:47:38 +0100 Subject: [PATCH] software/liblitedram: Use "%u" to format uint32_t values To fix compiler warnings of the following type: warning: format '%lu' expects argument of type 'long unsigned int', but argument has type 'unsigned int' [-Wformat=] Signed-off-by: Geert Uytterhoeven --- litex/soc/software/liblitedram/bist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/liblitedram/bist.c b/litex/soc/software/liblitedram/bist.c index 65e2dcf4c..63446d11a 100644 --- a/litex/soc/software/liblitedram/bist.c +++ b/litex/soc/software/liblitedram/bist.c @@ -130,7 +130,7 @@ void sdram_bist_loop(uint32_t loop, uint32_t burst_length, uint32_t random) { static uint32_t compute_speed_mibs(uint32_t length, uint32_t ticks) { uint32_t speed; - //printf("(%lu, %lu)", length, ticks); + //printf("(%u, %u)", length, ticks); speed = length*(CONFIG_CLOCK_FREQUENCY/(1024*1024))/ticks; return speed; }