Skip to content

Commit 20adec7

Browse files
committed
boards/xtensa: fix build errors related to data types on ESP32|S3
Fix format specifier macros after compiler type changes. Signed-off-by: Filipe Cavalcanti <[email protected]> Fix boards with PRI
1 parent 18973cc commit 20adec7

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

boards/xtensa/esp32/esp32-audio-kit/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

boards/xtensa/esp32/esp32-devkitc/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

boards/xtensa/esp32/esp32-lyrat/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

boards/xtensa/esp32/esp32-pico-kit/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

boards/xtensa/esp32/esp32-sparrow-kit/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

boards/xtensa/esp32/esp32-wrover-kit/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

boards/xtensa/esp32/lilygo_tbeam_lora_gps/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
215215

216216
DEBUGASSERT(esp32gpio != NULL && value != NULL);
217217
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
218-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
218+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
219219

220220
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
221221
return OK;

boards/xtensa/esp32/ttgo_eink5_v2/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

boards/xtensa/esp32/ttgo_lora_esp32/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

boards/xtensa/esp32/ttgo_t_display_esp32/src/esp32_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int gpin_read(struct gpio_dev_s *dev, bool *value)
214214

215215
DEBUGASSERT(esp32gpio != NULL && value != NULL);
216216
DEBUGASSERT(esp32gpio->id < BOARD_NGPIOIN);
217-
gpioinfo("Reading... pin %d\n", g_gpioinputs[esp32gpio->id]);
217+
gpioinfo("Reading... pin %" PRIu32 "\n", g_gpioinputs[esp32gpio->id]);
218218

219219
*value = esp32_gpioread(g_gpioinputs[esp32gpio->id]);
220220
return OK;

0 commit comments

Comments
 (0)