arch/arm/src/stm32f0l0g0/stm32_spi.c: Fix syslog formats
This commit is contained in:
parent
5706e3851d
commit
fc76157d4a
@ -56,6 +56,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
@ -1000,7 +1001,7 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev,
|
||||
* will be faster.
|
||||
*/
|
||||
|
||||
spiinfo("Frequency %d->%d\n", frequency, actual);
|
||||
spiinfo("Frequency %" PRId32 "->% " PRId32 "\n", frequency, actual);
|
||||
|
||||
priv->frequency = frequency;
|
||||
priv->actual = actual;
|
||||
@ -1266,7 +1267,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…
x
Reference in New Issue
Block a user