From 77570dfbded7311c98ff6f57d407034dbfed7612 Mon Sep 17 00:00:00 2001 From: Zhang Hai Peng Date: Wed, 9 Sep 2026 14:26:49 +0800 Subject: [PATCH] fix(bt): remove noisy OSI event handler enter/exit debug logs These per-event traces fire on every async dispatch and flood BT logs without aiding diagnosis; higher-layer traces remain for debugging. (cherry picked from commit b9b9b8633f5698514cc2de37172a35aad7fd8648) Co-authored-by: zhanghaipeng --- components/bt/common/osi/thread.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/bt/common/osi/thread.c b/components/bt/common/osi/thread.c index efe9b9d5283..0bcc04665bf 100644 --- a/components/bt/common/osi/thread.c +++ b/components/bt/common/osi/thread.c @@ -766,7 +766,6 @@ static void osi_thread_generic_event_handler(void *context) OSI_EVENT_SET_FLAG(event, OSI_EVENT_FLAG_RUNNING); func = event->item.func; func_context = event->item.context; - OSI_TRACE_DEBUG("%s enter ev=%p flags=0x%x", __func__, event, event->flags); osi_mutex_unlock(&event->lock); if (func != NULL) { @@ -775,7 +774,6 @@ static void osi_thread_generic_event_handler(void *context) osi_mutex_lock(&event->lock, OSI_MUTEX_MAX_TIMEOUT); OSI_EVENT_CLEAR_FLAG(event, OSI_EVENT_FLAG_RUNNING); - OSI_TRACE_DEBUG("%s exit ev=%p flags=0x%x", __func__, event, event->flags); should_free = osi_event_release_locked(event); osi_event_unlock_and_maybe_free(event, should_free); }