Bluetooth: Add debug config options for all current sub-modules
We want to be able to do fine-grained enabling of debug logs for the various Bluetooth sub-modules. They all default to 'n' so an app writer would need to go and enable the specific ones that they're interested in. Change-Id: I17105adf133d441dfc811bdd66a00be015813679 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
d46de84c03
commit
3beca82c90
5 changed files with 56 additions and 0 deletions
|
@ -67,6 +67,42 @@ config BLUETOOTH_DEBUG_BUF
|
|||
help
|
||||
This option enables debug support for Bluetooth buffers.
|
||||
|
||||
config BLUETOOTH_DEBUG_CONN
|
||||
bool
|
||||
prompt "Bluetooth connection debug"
|
||||
depends on BLUETOOTH_DEBUG
|
||||
default n
|
||||
help
|
||||
This option enables debug support for Bluetooth
|
||||
connection handling.
|
||||
|
||||
config BLUETOOTH_DEBUG_L2CAP
|
||||
bool
|
||||
prompt "Bluetooth L2CAP debug"
|
||||
depends on BLUETOOTH_DEBUG
|
||||
default n
|
||||
help
|
||||
This option enables debug support for the Bluetooth
|
||||
L2ACP layer.
|
||||
|
||||
config BLUETOOTH_DEBUG_SMP
|
||||
bool
|
||||
prompt "Bluetooth Security Manager Protocol (SMP) debug"
|
||||
depends on BLUETOOTH_DEBUG
|
||||
default n
|
||||
help
|
||||
This option enables debug support for the Bluetooth
|
||||
Security Manager Protocol (SMP).
|
||||
|
||||
config BLUETOOTH_DEBUG_ATT
|
||||
bool
|
||||
prompt "Bluetooth Attribute Protocol (ATT) debug"
|
||||
depends on BLUETOOTH_DEBUG
|
||||
default n
|
||||
help
|
||||
This option enables debug support for the Bluetooth
|
||||
Attribute Protocol (ATT).
|
||||
|
||||
config BLUETOOTH_UART
|
||||
bool
|
||||
prompt "Bluetooth UART driver"
|
||||
|
|
|
@ -46,6 +46,11 @@
|
|||
#include "l2cap.h"
|
||||
#include "att.h"
|
||||
|
||||
#if !defined(CONFIG_BLUETOOTH_DEBUG_ATT)
|
||||
#undef BT_DBG
|
||||
#define BT_DBG(fmt, ...)
|
||||
#endif
|
||||
|
||||
static void send_err_rsp(struct bt_conn *conn, uint8_t req, uint16_t handle,
|
||||
uint8_t err)
|
||||
{
|
||||
|
|
|
@ -44,6 +44,11 @@
|
|||
#include "conn.h"
|
||||
#include "l2cap.h"
|
||||
|
||||
#if !defined(CONFIG_BLUETOOTH_DEBUG_CONN)
|
||||
#undef BT_DBG
|
||||
#define BT_DBG(fmt, ...)
|
||||
#endif
|
||||
|
||||
#define MAX_CONN_COUNT 1
|
||||
static struct bt_conn conns[MAX_CONN_COUNT];
|
||||
|
||||
|
|
|
@ -45,6 +45,11 @@
|
|||
#include "att.h"
|
||||
#include "smp.h"
|
||||
|
||||
#if !defined(CONFIG_BLUETOOTH_DEBUG_L2CAP)
|
||||
#undef BT_DBG
|
||||
#define BT_DBG(fmt, ...)
|
||||
#endif
|
||||
|
||||
#define LE_CONN_MIN_INTERVAL 0x0028
|
||||
#define LE_CONN_MAX_INTERVAL 0x0038
|
||||
#define LE_CONN_LATENCY 0x0000
|
||||
|
|
|
@ -44,6 +44,11 @@
|
|||
#include "l2cap.h"
|
||||
#include "smp.h"
|
||||
|
||||
#if !defined(CONFIG_BLUETOOTH_DEBUG_SMP)
|
||||
#undef BT_DBG
|
||||
#define BT_DBG(fmt, ...)
|
||||
#endif
|
||||
|
||||
struct bt_buf *bt_smp_create_pdu(struct bt_conn *conn, uint8_t op, size_t len)
|
||||
{
|
||||
struct bt_smp_hdr *hdr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue