This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit fc76157d4ab8659c2bcc38280363c45373931c7c Author: YAMAMOTO Takashi <yamam...@midokura.com> AuthorDate: Wed Nov 25 10:39:06 2020 +0900 arch/arm/src/stm32f0l0g0/stm32_spi.c: Fix syslog formats --- arch/arm/src/stm32f0l0g0/stm32_spi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32f0l0g0/stm32_spi.c b/arch/arm/src/stm32f0l0g0/stm32_spi.c index 7353d36..902a72a 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_spi.c +++ b/arch/arm/src/stm32f0l0g0/stm32_spi.c @@ -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;