Skip to content

Commit d5314b8

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: split: Add missing BT_DEBUG_ENABLED define
Add missing BT_DEBUG_ENABLED definitions. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 2993b1e commit d5314b8

File tree

16 files changed

+33
-18
lines changed

16 files changed

+33
-18
lines changed

subsys/bluetooth/controller/ll_sw/lll_chan.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
#include "hal/ccm.h"
1010
#include "hal/radio.h"
1111

12-
#define LOG_MODULE_NAME bt_ctlr_llsw_nordic_lll_chan
12+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
13+
#define LOG_MODULE_NAME bt_ctlr_lll_chan
1314
#include "common/log.h"
1415
#include <soc.h>
1516
#include "hal/debug.h"

subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
#include "lll_vendor.h"
2929
#include "lll_internal.h"
3030

31-
#define LOG_MODULE_NAME bt_ctlr_llsw_nordic_lll
31+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
32+
#define LOG_MODULE_NAME bt_ctlr_lll
3233
#include "common/log.h"
33-
3434
#include "hal/debug.h"
3535

3636
#if defined(CONFIG_BT_CTLR_ZLI)

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
#include "lll_adv_internal.h"
3737
#include "lll_prof_internal.h"
3838

39-
#define LOG_MODULE_NAME bt_ctlr_llsw_nordic_lll_adv
39+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
40+
#define LOG_MODULE_NAME bt_ctlr_lll_adv
4041
#include "common/log.h"
4142
#include <soc.h>
4243
#include "hal/debug.h"

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_clock.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
#include <drivers/clock_control.h>
1111
#include <drivers/clock_control/nrf_clock_control.h>
1212

13-
#define LOG_MODULE_NAME bt_ctlr_llsw_nordic_lll_clock
13+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
14+
#define LOG_MODULE_NAME bt_ctlr_lll_clock
1415
#include "common/log.h"
1516
#include "hal/debug.h"
1617

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
#include "lll_tim_internal.h"
2929
#include "lll_prof_internal.h"
3030

31-
#define LOG_MODULE_NAME bt_ctlr_llsw_nordic_lll_conn
31+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
32+
#define LOG_MODULE_NAME bt_ctlr_lll_conn
3233
#include "common/log.h"
3334
#include <soc.h>
3435
#include "hal/debug.h"

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_master.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#include "lll_internal.h"
2828
#include "lll_tim_internal.h"
2929

30-
#define LOG_MODULE_NAME bt_ctlr_llsw_nordic_lll_master
30+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
31+
#define LOG_MODULE_NAME bt_ctlr_lll_master
3132
#include "common/log.h"
3233
#include <soc.h>
3334
#include "hal/debug.h"

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_scan.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
#include "lll_tim_internal.h"
3333
#include "lll_prof_internal.h"
3434

35-
#define LOG_MODULE_NAME bt_ctlr_llsw_nordic_lll_scan
35+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
36+
#define LOG_MODULE_NAME bt_ctlr_lll_scan
3637
#include "common/log.h"
3738
#include <soc.h>
3839
#include "hal/debug.h"

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_slave.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#include "lll_internal.h"
2828
#include "lll_tim_internal.h"
2929

30-
#define LOG_MODULE_NAME bt_ctlr_llsw_nordic_lll_slave
30+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
31+
#define LOG_MODULE_NAME bt_ctlr_lll_slave
3132
#include "common/log.h"
3233
#include <soc.h>
3334
#include "hal/debug.h"

subsys/bluetooth/controller/ll_sw/nordic/lll/lll_test.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424

2525
#include "ll_test.h"
2626

27-
#include "hal/debug.h"
27+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
28+
#define LOG_MODULE_NAME bt_ctlr_lll_test
2829
#include "common/log.h"
30+
#include "hal/debug.h"
2931

3032
#define CNTR_MIN_DELTA 3
3133

subsys/bluetooth/controller/ll_sw/ull.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
#include "ull_vendor.h"
5151
#endif /* CONFIG_BT_CTLR_USER_EXT */
5252

53-
#define LOG_MODULE_NAME bt_ctlr_llsw_ull
53+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
54+
#define LOG_MODULE_NAME bt_ctlr_ull
5455
#include "common/log.h"
5556
#include "hal/debug.h"
5657

0 commit comments

Comments
 (0)