You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2020/04/17 12:56:56 UTC

[mynewt-nimble] 04/04: nimble/socket: Enhance error log with hci dev num

This is an automated email from the ASF dual-hosted git repository.

rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit bb0fcde212146894431732ee87601784cac5d444
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Wed Aug 14 14:44:02 2019 +0200

    nimble/socket: Enhance error log with hci dev num
---
 nimble/transport/socket/src/ble_hci_socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/transport/socket/src/ble_hci_socket.c b/nimble/transport/socket/src/ble_hci_socket.c
index 863d0fb..8bf56f3 100644
--- a/nimble/transport/socket/src/ble_hci_socket.c
+++ b/nimble/transport/socket/src/ble_hci_socket.c
@@ -540,7 +540,7 @@ ble_hci_sock_config(void)
 
     rc = bind(s, (struct sockaddr *)&shci, sizeof(shci));
     if (rc) {
-        dprintf(1, "bind() failed %d\n", errno);
+        dprintf(1, "bind() failed %d hci%d\n", errno, shci.hci_dev);
         goto err;
     }