mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 04:34:31 +02:00
fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails
This commit is contained in:
committed by
Rahul Tank
parent
e5b60eb20b
commit
9340acfc4f
Submodule components/bt/host/nimble/nimble updated: e72f1360c7...d04373f47e
@@ -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);
|
||||
|
Reference in New Issue
Block a user