From 1d21a9007680c15e2d71a637310562ea23ba7ef4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 3 May 2021 10:32:43 +0200 Subject: [PATCH] software/liblitespi: Fix compilation warning. --- litex/soc/software/liblitespi/spiflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/liblitespi/spiflash.c b/litex/soc/software/liblitespi/spiflash.c index 798c7f193..67e091d45 100644 --- a/litex/soc/software/liblitespi/spiflash.c +++ b/litex/soc/software/liblitespi/spiflash.c @@ -43,7 +43,7 @@ int spiflash_freq_init(void) /* Check if block is erased (filled with 0xFF) */ if(crc == CRC32_ERASED_FLASH) { - printf("Block of size %d, started on address 0x%x is erased. Cannot proceed with SPI frequency test.\n\r", SPI_FLASH_BLOCK_SIZE, SPIFLASH_BASE); + printf("Block of size %d, started on address 0x%lx is erased. Cannot proceed with SPI frequency test.\n\r", SPI_FLASH_BLOCK_SIZE, SPIFLASH_BASE); return -1; }