Skip to content

Commit

Permalink
fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocati…
Browse files Browse the repository at this point in the history
…on fails
  • Loading branch information
ESPAbhinav authored and rahult-github committed Dec 24, 2024
1 parent ff0826a commit a725747
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 a725747

Please sign in to comment.