From 1cd36ff007ab865d1d64a5dd68686cbf94930dc8 Mon Sep 17 00:00:00 2001 From: Christopher Collins Date: Tue, 28 Mar 2017 16:34:15 -0700 Subject: [PATCH] BLE Host - Additional debug logging. X-Original-Commit: 519e5164bbee1e3c75e679f9d5dc1201af3b8f93 --- nimble/host/src/ble_att_clt.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nimble/host/src/ble_att_clt.c b/nimble/host/src/ble_att_clt.c index 4a93171c7..f310a6f12 100644 --- a/nimble/host/src/ble_att_clt.c +++ b/nimble/host/src/ble_att_clt.c @@ -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) {