arch/arm/src/stm32/stm32_spi.c: Fix syslog formats
This commit is contained in:
parent
8fc5a24710
commit
2893607a7e
@ -47,6 +47,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
@ -1334,7 +1335,7 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, uint32_t frequency)
|
||||
* faster.
|
||||
*/
|
||||
|
||||
spiinfo("Frequency %d->%d\n", frequency, actual);
|
||||
spiinfo("Frequency %" PRIu32 "->%" PRIu32 "\n", frequency, actual);
|
||||
|
||||
priv->frequency = frequency;
|
||||
priv->actual = actual;
|
||||
@ -1623,7 +1624,8 @@ static uint32_t spi_send(FAR struct spi_dev_s *dev, uint32_t wd)
|
||||
|
||||
regval = spi_getreg(priv, STM32_SPI_SR_OFFSET);
|
||||
|
||||
spiinfo("Sent: %04x Return: %04x Status: %02x\n", wd, ret, regval);
|
||||
spiinfo("Sent: %04" PRIx32 " Return: %04" PRIx32
|
||||
" Status: %02" PRIx32 "\n", wd, ret, regval);
|
||||
UNUSED(regval);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user