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

This commit is contained in:
Abhinav Kudnar 2024-12-09 18:14:46 +08:00 committed by Rahul Tank
parent fc3ecc2527
commit 408d841dfe
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit bac3aa9d4e261b57aa49819fe72bb8e842b9f93f
Subproject commit 7d350d5ed15b2cba936e2a4dc903e3c745a6fd7d

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