diff options
author | MichaĆ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com> | 2019-08-20 09:58:52 +0200 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-08-28 09:43:17 -0700 |
commit | 50f5827544b2bde2cc8a198b2080829d885002e5 (patch) | |
tree | 11d617156ac06e9971223a778a0bff4e8665107d /mesh/mesh-io-generic.c | |
parent | 3d7d12ee99e2ee87f2eb81b291d2b6867a2194ba (diff) | |
download | bluez-50f5827544b2bde2cc8a198b2080829d885002e5.tar.gz |
mesh: Show error message when io initialization fails
Diffstat (limited to 'mesh/mesh-io-generic.c')
-rw-r--r-- | mesh/mesh-io-generic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c index cc91f494e..42bf64a0b 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; } |