Skip to content

Commit 4bdca17

Browse files
jori-nordicnashif
authored andcommitted
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 <[email protected]>
1 parent 3324eec commit 4bdca17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/services/ots/ots_l2cap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#if defined(CONFIG_BT_OTS)
2626
LOG_MODULE_DECLARE(bt_ots, CONFIG_BT_OTS_LOG_LEVEL);
2727
#elif defined(CONFIG_BT_OTS_CLIENT)
28-
LOG_MODULE_REGISTER(bt_ots, CONFIG_BT_OTS_LOG_LEVEL);
28+
LOG_MODULE_REGISTER(bt_ots, CONFIG_BT_OTS_CLIENT_LOG_LEVEL);
2929
#endif
3030

3131
/* According to BLE specification Assigned Numbers that are used in the

0 commit comments

Comments
 (0)