arch/xtensa/src/esp32/esp32_spi.c: Fix a syslog format

This commit is contained in:
YAMAMOTO Takashi 2020-11-22 15:12:01 +09:00 committed by Xiang Xiao
parent a88dcb3b77
commit a24f66f31f

View File

@ -27,6 +27,7 @@
#ifdef CONFIG_ESP32_SPI #ifdef CONFIG_ESP32_SPI
#include <sys/types.h> #include <sys/types.h>
#include <inttypes.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
@ -586,7 +587,8 @@ static void esp32_spi_select(FAR struct spi_dev_s *dev,
esp32_gpiowrite(priv->config->cs_pin, value); esp32_gpiowrite(priv->config->cs_pin, value);
#endif #endif
spiinfo("devid: %08lx CS: %s\n", devid, selected ? "select" : "free"); spiinfo("devid: %08" PRIx32 " CS: %s\n",
devid, selected ? "select" : "free");
} }
#endif #endif