From 46f104b3aeaa1da107992eeb3a6b7f4599c1ef64 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Fri, 5 May 2023 11:18:09 +0800 Subject: [PATCH] gdma: fixed crash from logging when using newlib nano Newlib nano printf formatting do not support %z, and will crash if such an identifier is followed by a %s indentifier. Closes https://github.com/espressif/esp-idf/issues/9631 --- components/esp_hw_support/dma/gdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_hw_support/dma/gdma.c b/components/esp_hw_support/dma/gdma.c index 1ecaa5e9b8..8247b07af7 100644 --- a/components/esp_hw_support/dma/gdma.c +++ b/components/esp_hw_support/dma/gdma.c @@ -333,7 +333,7 @@ esp_err_t gdma_set_transfer_ability(gdma_channel_handle_t dma_chan, const gdma_t dma_chan->sram_alignment = sram_alignment; dma_chan->psram_alignment = psram_alignment; - ESP_LOGD(TAG, "%s channel (%d,%d), (%zu:%zu) bytes aligned, burst %s", dma_chan->direction == GDMA_CHANNEL_DIRECTION_TX ? "tx" : "rx", + ESP_LOGD(TAG, "%s channel (%d,%d), (%u:%u) bytes aligned, burst %s", dma_chan->direction == GDMA_CHANNEL_DIRECTION_TX ? "tx" : "rx", group->group_id, pair->pair_id, sram_alignment, psram_alignment, en_burst ? "enabled" : "disabled"); err: return ret;