Re: [PATCH BlueZ] mesh: Show error message when io initialization fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Applied

On Tue, 2019-08-20 at 09:58 +0200, Michał Lowas-Rzechonek wrote:
> ---
>  mesh/mesh-io-generic.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> 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;
>  	}
>  




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux