Skip to content

Commit

Permalink
Merge branch 'bugfix/solve_memory_prints_v5.2' into 'release/v5.2'
Browse files Browse the repository at this point in the history
fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails (v5.2)

See merge request espressif/esp-idf!35837
  • Loading branch information
rahult-github committed Dec 22, 2024
2 parents c9787fe + 14cf65e commit ae21841
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/bt/host/nimble/nimble
4 changes: 2 additions & 2 deletions components/bt/porting/mem/bt_osi_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae21841

Please sign in to comment.