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 <geert@linux-m68k.org>
This commit is contained in:
parent
b979e69934
commit
84e3a77724
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue