bletiny: Add debug log for CoC accept

Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/0aef4806
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/0aef4806
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/0aef4806

Branch: refs/heads/1_0_0_dev
Commit: 0aef4806e0ca0d20a7cf91d2de31a2760bca55a6
Parents: c26d8c6
Author: Łukasz Rymanowski <[email protected]>
Authored: Thu Feb 16 06:29:56 2017 +0100
Committer: Marko Kiiskila <[email protected]>
Committed: Mon Mar 6 15:50:46 2017 -0800

----------------------------------------------------------------------
 apps/bletiny/src/main.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0aef4806/apps/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c
index b8f1e51..442a264 100755
--- a/apps/bletiny/src/main.c
+++ b/apps/bletiny/src/main.c
@@ -1643,6 +1643,9 @@ bletiny_l2cap_coc_accept(uint16_t conn_handle, uint16_t 
peer_mtu,
 {
     struct os_mbuf *sdu_rx;
 
+    console_printf("LE CoC accepting, chan: 0x%08lx, peer_mtu %d\n",
+                       (uint32_t) chan, peer_mtu);
+
     sdu_rx = os_mbuf_get_pkthdr(&sdu_os_mbuf_pool, 0);
     if (!sdu_rx) {
         return BLE_HS_ENOMEM;

Reply via email to