From a24f66f31fb844ed4cffac6a78f30e5c441b69a6 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 22 Nov 2020 15:12:01 +0900 Subject: [PATCH] arch/xtensa/src/esp32/esp32_spi.c: Fix a syslog format --- arch/xtensa/src/esp32/esp32_spi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32/esp32_spi.c b/arch/xtensa/src/esp32/esp32_spi.c index 494f1d1186..1f67784ae0 100644 --- a/arch/xtensa/src/esp32/esp32_spi.c +++ b/arch/xtensa/src/esp32/esp32_spi.c @@ -27,6 +27,7 @@ #ifdef CONFIG_ESP32_SPI #include +#include #include #include #include @@ -586,7 +587,8 @@ static void esp32_spi_select(FAR struct spi_dev_s *dev, esp32_gpiowrite(priv->config->cs_pin, value); #endif - spiinfo("devid: %08lx CS: %s\n", devid, selected ? "select" : "free"); + spiinfo("devid: %08" PRIx32 " CS: %s\n", + devid, selected ? "select" : "free"); } #endif