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