From df7a8ae1e48d2ebf4d44c0b08075dafcc059b52c Mon Sep 17 00:00:00 2001 From: Zhang Hai Peng Date: Tue, 21 Jul 2026 10:44:12 +0800 Subject: [PATCH] change(ble/bluedroid): disable host trace logs when BLE Log host is off Default all Bluedroid layer trace levels to NONE when BLE async log is enabled without BLE_LOG_HOST_LOG. (cherry picked from commit 1f8f935e3faadd98d77ab1e58e6c95bf8a9913eb) Co-authored-by: zhanghaipeng --- components/bt/common/Kconfig.in | 1 - components/bt/host/bluedroid/Kconfig.in | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/common/Kconfig.in b/components/bt/common/Kconfig.in index 9c7e04d1ed7..5838b5e3884 100644 --- a/components/bt/common/Kconfig.in +++ b/components/bt/common/Kconfig.in @@ -160,7 +160,6 @@ menu "BT Logs" menuconfig BT_LOG_CRITICAL_ONLY bool "Enable bandwidth-optimized log mode (critical logs only)" default n - depends on !BT_STACK_NO_LOG select BLE_LOG_ENABLED help Enable bandwidth-optimized logging for the BLE Log Async Output diff --git a/components/bt/host/bluedroid/Kconfig.in b/components/bt/host/bluedroid/Kconfig.in index 8731f40c9ab..e7e3a123d20 100644 --- a/components/bt/host/bluedroid/Kconfig.in +++ b/components/bt/host/bluedroid/Kconfig.in @@ -562,6 +562,7 @@ endmenu #BT debug option config BT_STACK_NO_LOG bool "Disable BT debug logs (minimize bin size)" depends on BT_BLUEDROID_ENABLED + default y if BLE_LOG_ENABLED && !BLE_LOG_HOST_LOG default n help This select can save the rodata code size