Skip to content

Commit 83d6e5d

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

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/cntr.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
#include <sys/dlist.h>
99
#include <sys/mempool_base.h>
1010

11+
#include <nrfx/hal/nrf_rtc.h>
12+
1113
#include "hal/cntr.h"
1214

13-
#define LOG_MODULE_NAME bt_ctlr_cntr
15+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
16+
#define LOG_MODULE_NAME bt_ctlr_hal_cntr
1417
#include "common/log.h"
1518
#include "hal/debug.h"
16-
#include <nrfx/hal/nrf_rtc.h>
1719

1820
#ifndef NRF_RTC
1921
#define NRF_RTC NRF_RTC0

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ecb.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010
#include <sys/dlist.h>
1111
#include <sys/mempool_base.h>
1212

13+
#include <nrfx/hal/nrf_ecb.h>
14+
1315
#include "util/mem.h"
1416
#include "hal/ecb.h"
1517

16-
#define LOG_MODULE_NAME bt_ctlr_nrf5_ecb
18+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
19+
#define LOG_MODULE_NAME bt_ctlr_hal_ecb
1720
#include "common/log.h"
1821
#include "hal/debug.h"
1922

20-
#include <nrfx/hal/nrf_ecb.h>
21-
2223
struct ecb_param {
2324
u8_t key[16];
2425
u8_t clear_text[16];

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/mayfly.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
#include "util/memq.h"
1414
#include "util/mayfly.h"
1515

16-
#define LOG_MODULE_NAME bt_ctlr_nrf5_mayfly
16+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
17+
#define LOG_MODULE_NAME bt_ctlr_hal_mayfly
1718
#include "common/log.h"
1819
#include "hal/debug.h"
1920

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ticker.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
#include "ticker/ticker.h"
1818

19-
#define LOG_MODULE_NAME bt_ctlr_nrf5_ticker
19+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
20+
#define LOG_MODULE_NAME bt_ctlr_hal_ticker
2021
#include "common/log.h"
2122
#include "hal/debug.h"
2223

subsys/bluetooth/controller/ticker/ticker.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include "ticker.h"
1616

17+
#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)
1718
#define LOG_MODULE_NAME bt_ctlr_ticker
1819
#include "common/log.h"
1920
#include "hal/debug.h"

0 commit comments

Comments
 (0)