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