Re: [PATCH] input: add error message when auth fails

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

 



Hi Gustavo,

On Fri, Apr 20, 2012, Gustavo Padovan wrote:
> ---
>  input/server.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/input/server.c b/input/server.c
> index cea08d1..ed09a73 100644
> --- a/input/server.c
> +++ b/input/server.c
> @@ -176,6 +176,8 @@ static void confirm_event_cb(GIOChannel *chan, gpointer user_data)
>  	if (ret == 0)
>  		return;
>  
> +	error("Authorization failed(%d): %s", -ret, strerror(-ret));
> +
>  	g_io_channel_unref(server->confirm);
>  	server->confirm = NULL;

Thanks, applied after making the message a bit more informative.
Remember that error() doesn't include any context info like DBG() does,
i.e. you wouldn't even know that the error message is from the input
plugin.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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