Bluetooth: Add BLUETOOTH_DEBUG configuration option

BLUETOOTH_DEBUG option enables extensive debug output to serial
console. Disabled by default.

Change-Id: I71a6ca4c4f1dfb5bd818e6b8320a07249befadfb
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2015-04-17 14:53:17 +03:00 committed by Anas Nashif
commit b3e25209a8
2 changed files with 14 additions and 0 deletions

View file

@ -37,7 +37,12 @@
/* Bluetooth subsystem logging helpers */
#if defined(CONFIG_BLUETOOTH_DEBUG)
#define BT_DBG(fmt, ...) printk("bt: %s: " fmt, __func__, ##__VA_ARGS__)
#else
#define BT_DBG(fmt, ...)
#endif /* CONFIG_BLUETOOTH_DEBUG */
#define BT_ERR(fmt, ...) printk("bt: %s: " fmt, __func__, ##__VA_ARGS__)
#define BT_WARN(fmt, ...) printk("bt: %s: " fmt, __func__, ##__VA_ARGS__)
#define BT_INFO(fmt, ...) printk("bt: " fmt, ##__VA_ARGS__)

View file

@ -41,6 +41,15 @@ config BLUETOOTH
help
This option enables Bluetooth Low Energy support.
config BLUETOOTH_DEBUG
bool
prompt "Bluetooth LE debug support"
depends on BLUETOOTH
default n
help
This option enables Bluetooth debug going to standard
serial console.
config BLUETOOTH_UART
bool
prompt "Bluetooth UART driver"