BLE Host - Additional debug logging.

X-Original-Commit: 519e5164bbee1e3c75e679f9d5dc1201af3b8f93
This commit is contained in:
Christopher Collins
2017-03-28 16:58:41 -07:00
parent bb70d97ecb
commit 1cd36ff007
+13
View File
@@ -918,7 +918,20 @@ ble_att_clt_tx_write_cmd(uint16_t conn_handle,
return BLE_HS_ENOTSUP;
#endif
uint8_t b;
int rc;
int i;
BLE_HS_LOG(DEBUG, "ble_att_clt_tx_write_cmd(): ");
for (i = 0; i < OS_MBUF_PKTLEN(txom); i++) {
if (i != 0) {
BLE_HS_LOG(DEBUG, ":");
}
rc = os_mbuf_copydata(txom, i, 1, &b);
assert(rc == 0);
BLE_HS_LOG(DEBUG, "0x%02x", b);
}
rc = ble_att_clt_tx_write_req_or_cmd(conn_handle, req, txom, 0);
if (rc != 0) {