From 61c26de3fe87e74b67466b56f42f844f14280eee Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 29 Nov 2020 16:36:13 +0900 Subject: [PATCH] arch/arm/src/lc823450/lc823450_spi.c: Fix a syslog format --- arch/arm/src/lc823450/lc823450_spi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/lc823450/lc823450_spi.c b/arch/arm/src/lc823450/lc823450_spi.c index 8211d688ae..2a99d6d9dc 100644 --- a/arch/arm/src/lc823450/lc823450_spi.c +++ b/arch/arm/src/lc823450/lc823450_spi.c @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -191,7 +192,8 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, } } - spiinfo("Frequency %d -> %d\n", frequency, sysclk / (4 * (256 - div))); + spiinfo("Frequency %" PRId32 " -> %ld\n", + frequency, sysclk / (4 * (256 - div))); actual = sysclk / (4 * (256 - div)); putreg32(div, LC823450_SPI_BRG);