arch/arm/src/stm32l4/stm32l4_qspi.c: Fix syslog formats
This commit is contained in:
parent
5749599b0b
commit
d66617b915
@ -40,6 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
@ -1754,7 +1755,7 @@ static uint32_t qspi_setfrequency(struct qspi_dev_s *dev, uint32_t frequency)
|
||||
return 0;
|
||||
}
|
||||
|
||||
spiinfo("frequency=%d\n", frequency);
|
||||
spiinfo("frequency=%" PRId32 "\n", frequency);
|
||||
DEBUGASSERT(priv);
|
||||
|
||||
/* Wait till BUSY flag reset */
|
||||
@ -1808,14 +1809,14 @@ static uint32_t qspi_setfrequency(struct qspi_dev_s *dev, uint32_t frequency)
|
||||
/* Calculate the new actual frequency */
|
||||
|
||||
actual = STL32L4_QSPI_CLOCK / prescaler;
|
||||
spiinfo("prescaler=%d actual=%d\n", prescaler, actual);
|
||||
spiinfo("prescaler=%" PRId32 " actual=%" PRId32 "\n", prescaler, actual);
|
||||
|
||||
/* Save the frequency setting */
|
||||
|
||||
priv->frequency = frequency;
|
||||
priv->actual = actual;
|
||||
|
||||
spiinfo("Frequency %d->%d\n", frequency, actual);
|
||||
spiinfo("Frequency %" PRId32 "->%" PRId32 "\n", frequency, actual);
|
||||
return actual;
|
||||
}
|
||||
|
||||
@ -1886,7 +1887,7 @@ static void qspi_setmode(struct qspi_dev_s *dev, enum qspi_mode_e mode)
|
||||
}
|
||||
|
||||
qspi_putreg(priv, regval, STM32L4_QUADSPI_DCR);
|
||||
spiinfo("DCR=%08x\n", regval);
|
||||
spiinfo("DCR=%08" PRIx32 "\n", regval);
|
||||
|
||||
/* Save the mode so that subsequent re-configurations will be faster */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user