Merge branch 'bugfix/solve_memory_prints_v5.0' into 'release/v5.0'

fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails (v5.0)

See merge request espressif/esp-idf!35840
This commit is contained in:
Island 2024-12-25 18:41:13 +08:00
commit ae9cbb0f6a
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit e72f1360c7084f0a15d6cf7125e77f09aab6017d
Subproject commit d04373f47e3c908127427f2ad2de430b1a4b44bf

View File

@ -25,8 +25,8 @@ IRAM_ATTR void *bt_osi_mem_malloc(size_t size)
#endif
if (!mem) {
log_count ++;
if ((log_count % 40) == 0) {
esp_rom_printf("malloc failed (size %zu)",size);
if ((log_count % 100) == 0) {
ESP_EARLY_LOGI("ESP_LOG_INFO","malloc failed (size %zu)",size);
log_count = 0;
}
assert(mem != NULL);