From 6ca40703d12610f046d5a65f26aed27fada5bdd5 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Mon, 28 Nov 2022 11:35:27 +0100 Subject: [PATCH] Bluetooth: Audio: Fix CAP initiator debug level Add missing debug level Kconfig option and use it. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/Kconfig.cap | 8 +++++++- subsys/bluetooth/audio/cap_initiator.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/audio/Kconfig.cap b/subsys/bluetooth/audio/Kconfig.cap index 7532391bd7d..63a81ed3e6c 100644 --- a/subsys/bluetooth/audio/Kconfig.cap +++ b/subsys/bluetooth/audio/Kconfig.cap @@ -36,7 +36,7 @@ config BT_DEBUG_CAP_ACCEPTOR module = BT_CAP_ACCEPTOR legacy-debug-sym = BT_DEBUG_CAP_ACCEPTOR -module-str = "Common Audio Profile" +module-str = "Common Audio Profile Acceptor" source "subsys/bluetooth/common/Kconfig.template.log_config_bt" config BT_CAP_INITIATOR @@ -48,7 +48,13 @@ config BT_CAP_INITIATOR config BT_DEBUG_CAP_INITIATOR bool "Common Audio Profile Initiator debug" + select DEPRECATED depends on BT_CAP_INITIATOR help Use this option to enable CAP Initiator debug logs for the Bluetooth Audio functionality. + +module = BT_CAP_INITIATOR +legacy-debug-sym = BT_DEBUG_CAP_INITIATOR +module-str = "Common Audio Profile Initiator" +source "subsys/bluetooth/common/Kconfig.template.log_config_bt" diff --git a/subsys/bluetooth/audio/cap_initiator.c b/subsys/bluetooth/audio/cap_initiator.c index 6a1c467141b..578494aab63 100644 --- a/subsys/bluetooth/audio/cap_initiator.c +++ b/subsys/bluetooth/audio/cap_initiator.c @@ -13,7 +13,7 @@ #include -LOG_MODULE_REGISTER(bt_cap_initiator, LOG_LEVEL_DBG); +LOG_MODULE_REGISTER(bt_cap_initiator, CONFIG_BT_CAP_INITIATOR_LOG_LEVEL); static const struct bt_cap_initiator_cb *cap_cb;