From a725747800c643327068023166652437e366aa32 Mon Sep 17 00:00:00 2001 From: Abhinav Kudnar Date: Mon, 9 Dec 2024 18:14:46 +0800 Subject: [PATCH] fix(nimble): Changing esp_rom_printf to ESP_LOGI when memory allocation fails --- components/bt/host/nimble/nimble | 2 +- components/bt/porting/mem/bt_osi_mem.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index f3385d0e385a..24df26650dcc 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit f3385d0e385acf8719a71bea0be366536c102d3d +Subproject commit 24df26650dcc42d5b1dd692c6ef586631feee77c diff --git a/components/bt/porting/mem/bt_osi_mem.c b/components/bt/porting/mem/bt_osi_mem.c index d6bb800a495c..612099d27767 100644 --- a/components/bt/porting/mem/bt_osi_mem.c +++ b/components/bt/porting/mem/bt_osi_mem.c @@ -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);