mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
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:
Submodule components/bt/host/nimble/nimble updated: f3385d0e38...24df26650d
@ -25,8 +25,8 @@ IRAM_ATTR void *bt_osi_mem_malloc(size_t size)
|
|||||||
#endif
|
#endif
|
||||||
if (!mem) {
|
if (!mem) {
|
||||||
log_count ++;
|
log_count ++;
|
||||||
if ((log_count % 40) == 0) {
|
if ((log_count % 100) == 0) {
|
||||||
esp_rom_printf("malloc failed (size %zu)",size);
|
ESP_EARLY_LOGI("ESP_LOG_INFO","malloc failed (size %zu)",size);
|
||||||
log_count = 0;
|
log_count = 0;
|
||||||
}
|
}
|
||||||
assert(mem != NULL);
|
assert(mem != NULL);
|
||||||
|
Reference in New Issue
Block a user