From f8112e2164b40c4ea3e27f408fe6b5d4dbff17b8 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Mon, 30 Sep 2019 20:51:50 +0200 Subject: [PATCH] pkg/nimble/netif_conn: improve debug messages --- pkg/nimble/netif/nimble_netif_conn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/nimble/netif/nimble_netif_conn.c b/pkg/nimble/netif/nimble_netif_conn.c index 14ef49cb79..54f7e2ed4f 100644 --- a/pkg/nimble/netif/nimble_netif_conn.c +++ b/pkg/nimble/netif/nimble_netif_conn.c @@ -81,7 +81,7 @@ int nimble_netif_conn_get_by_addr(const uint8_t *addr) assert(addr); int handle = NIMBLE_NETIF_CONN_INVALID; - DEBUG("nimble_netif_conn_get_by_addr %02x\n", (int)addr[5]); + DEBUG("nimble_netif_conn_get_by_addr %02x\n", (int)addr[0]); mutex_lock(&_lock); for (unsigned i = 0; i < CONN_CNT; i++) { if ((_conn[i].state & NIMBLE_NETIF_L2CAP_CONNECTED) && @@ -91,7 +91,7 @@ int nimble_netif_conn_get_by_addr(const uint8_t *addr) } } mutex_unlock(&_lock); - DEBUG("nimble_netif_conn_get_by_addr - found: %i\n", handle); + DEBUG("nimble_netif_conn_get_by_addr - found handle: %i\n", handle); return handle; } @@ -118,7 +118,7 @@ int nimble_netif_conn_start_connection(const uint8_t *addr) { int handle; - DEBUG("nimble_netif_conn_start_connection, addr %02x\n", (int)addr[5]); + DEBUG("nimble_netif_conn_start_connection, addr %02x\n", (int)addr[0]); mutex_lock(&_lock); handle = _find_by_state(NIMBLE_NETIF_UNUSED); if (handle != NIMBLE_NETIF_CONN_INVALID) {