Skip to content

Commit

Permalink
Merge branch 'bugfix/solve_memory_prints_v5.1' into 'release/v5.1'
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.1)

See merge request espressif/esp-idf!35839
  • Loading branch information
rahult-github committed Dec 24, 2024
2 parents 2249f2c + a725747 commit e4e56f0
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 e4e56f0

Please sign in to comment.