Bluetooth: Add config option for security keys handling
This makes sure that keys.c doesn't always have its BT_DBG logs enabled. Change-Id: Ia97149f08a448f55a15c3282f72afb23c495b715 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
0fdf33c734
commit
a2241a55fd
2 changed files with 14 additions and 0 deletions
|
@ -93,6 +93,15 @@ config BLUETOOTH_DEBUG_CONN
|
|||
This option enables debug support for Bluetooth
|
||||
connection handling.
|
||||
|
||||
config BLUETOOTH_DEBUG_KEYS
|
||||
bool
|
||||
prompt "Bluetooth security keys debug"
|
||||
depends on BLUETOOTH_DEBUG
|
||||
default n
|
||||
help
|
||||
This option enables debug support for the handling of
|
||||
Bluetooth security keys.
|
||||
|
||||
config BLUETOOTH_DEBUG_L2CAP
|
||||
bool
|
||||
prompt "Bluetooth L2CAP debug"
|
||||
|
|
|
@ -42,6 +42,11 @@
|
|||
#include "smp.h"
|
||||
#include "keys.h"
|
||||
|
||||
#if !defined(CONFIG_BLUETOOTH_DEBUG_KEYS)
|
||||
#undef BT_DBG
|
||||
#define BT_DBG(fmt, ...)
|
||||
#endif
|
||||
|
||||
#define bt_keys_foreach(list, cur, member) \
|
||||
for (cur = list; *cur; cur = &(*cur)->member)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue