From 4bdca17e217f2f8dd10de4c36ca9d0bb6bc9c9e6 Mon Sep 17 00:00:00 2001 From: Jonathan Rico Date: Mon, 19 Aug 2024 14:44:33 +0200 Subject: [PATCH] Bluetooth: OTS: Use proper kconfig log option `OTS_CLIENT=y` and `OTS=n` is a valid config. Since the logs weren't conditionally included, this flew under the radar for a while. Signed-off-by: Jonathan Rico --- subsys/bluetooth/services/ots/ots_l2cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/services/ots/ots_l2cap.c b/subsys/bluetooth/services/ots/ots_l2cap.c index aa540361257..7f0bc024fda 100644 --- a/subsys/bluetooth/services/ots/ots_l2cap.c +++ b/subsys/bluetooth/services/ots/ots_l2cap.c @@ -25,7 +25,7 @@ #if defined(CONFIG_BT_OTS) LOG_MODULE_DECLARE(bt_ots, CONFIG_BT_OTS_LOG_LEVEL); #elif defined(CONFIG_BT_OTS_CLIENT) -LOG_MODULE_REGISTER(bt_ots, CONFIG_BT_OTS_LOG_LEVEL); +LOG_MODULE_REGISTER(bt_ots, CONFIG_BT_OTS_CLIENT_LOG_LEVEL); #endif /* According to BLE specification Assigned Numbers that are used in the