From 9914999715462c9a83eb673ba2c4b710061eadfc Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Tue, 8 Aug 2023 20:29:02 -0300 Subject: [PATCH] stm32_qspi: Fix printf() format warnings --- arch/arm/src/stm32f7/stm32_qspi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/stm32f7/stm32_qspi.c b/arch/arm/src/stm32f7/stm32_qspi.c index 9dfdaaf68e..ffe5bbd01e 100644 --- a/arch/arm/src/stm32f7/stm32_qspi.c +++ b/arch/arm/src/stm32f7/stm32_qspi.c @@ -1797,7 +1797,7 @@ static uint32_t qspi_setfrequency(struct qspi_dev_s *dev, uint32_t frequency) return 0; } - spiinfo("frequency=%ld\n", frequency); + spiinfo("frequency=%" PRId32 "\n", frequency); DEBUGASSERT(priv); /* Wait till BUSY flag reset */ @@ -1851,14 +1851,14 @@ static uint32_t qspi_setfrequency(struct qspi_dev_s *dev, uint32_t frequency) /* Calculate the new actual frequency */ actual = STL32F7_QSPI_CLOCK / prescaler; - spiinfo("prescaler=%ld actual=%ld\n", prescaler, actual); + spiinfo("prescaler=%" PRId32 " actual=%" PRId32 "\n", prescaler, actual); /* Save the frequency setting */ priv->frequency = frequency; priv->actual = actual; - spiinfo("Frequency %ld->%ld\n", frequency, actual); + spiinfo("Frequency %" PRId32 "->%" PRId32 "\n", frequency, actual); return actual; }