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

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

See merge request espressif/esp-idf!35837
This commit is contained in:
Rahul Tank 2024-12-22 13:39:22 +08:00
commit ae21841454
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit f3385d0e385acf8719a71bea0be366536c102d3d
Subproject commit 24df26650dcc42d5b1dd692c6ef586631feee77c

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);