summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2016-07-04 17:28:41 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2016-07-18 09:34:20 +0000
commit9ddbf6a3a16bc198c3c1ec60f65bd51ad4d82a38 (patch)
treedd35f3042424d8a30c94bf9be2d75864bf6905af
parent14de650b13b420e6f9643124e0552d8eaee915dc (diff)
drivers/nble: Improve debug
Correct that handle is attribute one, print flag to notice cancel prepared write requests. Change-Id: I46d747f0466a44460e92fcbaef4e436066c09f4a Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
-rw-r--r--drivers/bluetooth/nble/gatt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/bluetooth/nble/gatt.c b/drivers/bluetooth/nble/gatt.c
index 820824681..8c2cf8e38 100644
--- a/drivers/bluetooth/nble/gatt.c
+++ b/drivers/bluetooth/nble/gatt.c
@@ -1441,7 +1441,8 @@ void on_nble_gatts_write_evt(const struct nble_gatts_write_evt *ev,
struct bt_conn *conn = bt_conn_lookup_handle(ev->conn_handle);
struct nble_gatts_write_reply_req reply_data;
- BT_DBG("handle 0x%04x flag %d len %u", attr->handle, ev->flag, buflen);
+ BT_DBG("attr handle 0x%04x flag %d len %u", attr->handle, ev->flag,
+ buflen);
/* Check for write support and flush support in case of prepare */
if (!attr->write) {
@@ -1479,7 +1480,7 @@ void on_nble_gatts_write_exec_evt(const struct nble_gatts_write_exec_evt *evt)
.status = 0,
};
- BT_DBG("handle 0x%04x", evt->conn_handle);
+ BT_DBG("handle 0x%04x flag %u", evt->conn_handle, evt->flag);
conn = bt_conn_lookup_handle(evt->conn_handle);
if (!conn) {