Skip to content

Commit d5395d0

Browse files
committed
chore: declutter SPI DMA debug logs
SPI component is overly verbose about its handling of pre-DMA cache<->memory synchronization. This commit moves the logs to verbose level.
1 parent 4875518 commit d5395d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/esp_driver_spi/src/gpspi/spi_master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ static SPI_MASTER_ISR_ATTR esp_err_t setup_dma_priv_buffer(spi_host_t *host, uin
11971197
}
11981198
}
11991199
need_malloc |= (((uint32_t)buffer | len) & (alignment - 1));
1200-
ESP_EARLY_LOGD(SPI_TAG, "%s %p, len %d, is_ptr_ext %d, use_psram: %d, alignment: %d, need_malloc: %d from %s", is_tx ? "TX" : "RX", buffer, len, is_ptr_ext, use_psram, alignment, need_malloc, (mem_cap & MALLOC_CAP_SPIRAM) ? "psram" : "internal");
1200+
ESP_EARLY_LOGV(SPI_TAG, "%s %p, len %d, is_ptr_ext %d, use_psram: %d, alignment: %d, need_malloc: %d from %s", is_tx ? "TX" : "RX", buffer, len, is_ptr_ext, use_psram, alignment, need_malloc, (mem_cap & MALLOC_CAP_SPIRAM) ? "psram" : "internal");
12011201
if (need_malloc) {
12021202
ESP_RETURN_ON_FALSE_ISR(!(flags & SPI_TRANS_DMA_BUFFER_ALIGN_MANUAL), ESP_ERR_INVALID_ARG, SPI_TAG, "Set flag SPI_TRANS_DMA_BUFFER_ALIGN_MANUAL but %s addr&len not align to %d, or not dma_capable", is_tx ? "TX" : "RX", alignment);
12031203
len = (len + alignment - 1) & (~(alignment - 1)); // up align alignment

components/esp_mm/esp_cache_msync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ esp_err_t esp_cache_msync(void *addr, size_t size, int flags)
102102
uint32_t cache_id = 0;
103103
valid = cache_hal_vaddr_to_cache_level_id(vaddr, size, &cache_level, &cache_id);
104104
if (!valid) {
105-
ESP_EARLY_LOGD(TAG, "vaddr is not in cacheable range, do nothing");
105+
ESP_EARLY_LOGV(TAG, "vaddr is not in cacheable range, do nothing");
106106
return ESP_ERR_NOT_SUPPORTED;
107107
}
108108

0 commit comments

Comments
 (0)