Diff between 3d7d12ee99e2ee87f2eb81b291d2b6867a2194ba and 50f5827544b2bde2cc8a198b2080829d885002e5

Changed Files

File Additions Deletions Status
mesh/mesh-io-generic.c +4 -1 modified

Full Patch

diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c
index cc91f49..42bf64a 100644
--- a/mesh/mesh-io-generic.c
+++ b/mesh/mesh-io-generic.c
@@ -21,6 +21,8 @@
 #include <config.h>
 #endif
 
+#include <errno.h>
+#include <string.h>
 #include <sys/time.h>
 #include <ell/ell.h>
 
@@ -285,7 +287,8 @@ static bool hci_init(struct mesh_io *io)
 {
 	io->pvt->hci = bt_hci_new_user_channel(io->pvt->index);
 	if (!io->pvt->hci) {
-		l_error("Failed to start mesh io (hci %u)", io->pvt->index);
+		l_error("Failed to start mesh io (hci %u): %s", io->pvt->index,
+							strerror(errno));
 		return false;
 	}