aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo@padovan.org>2012-04-20 14:36:15 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-04-23 13:13:49 +0300
commit1b64ef1d5ef316088bf7fec86e45d59ecbfefe6e (patch)
tree044f4793d1c409174f923d27373209332b4b20a6
parentf4807c64e0fdfca2c546c13753257437a879c203 (diff)
downloadbluez-1b64ef1d5ef316088bf7fec86e45d59ecbfefe6e.tar.gz
bluez-1b64ef1d5ef316088bf7fec86e45d59ecbfefe6e.tar.xz
bluez-1b64ef1d5ef316088bf7fec86e45d59ecbfefe6e.zip
input: add error message when auth fails
-rw-r--r--input/server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/input/server.c b/input/server.c
index cea08d1b..17e7547d 100644
--- a/input/server.c
+++ b/input/server.c
@@ -148,6 +148,7 @@ static void confirm_event_cb(GIOChannel *chan, gpointer user_data)
struct input_server *server = user_data;
bdaddr_t src, dst;
GError *err = NULL;
+ char addr[18];
int ret;
bt_io_get(chan, BT_IO_L2CAP, &err,
@@ -176,6 +177,10 @@ static void confirm_event_cb(GIOChannel *chan, gpointer user_data)
if (ret == 0)
return;
+ ba2str(&src, addr);
+ error("input: authorization for %s failed: %s (%d)",
+ addr, strerror(-ret), ret);
+
g_io_channel_unref(server->confirm);
server->confirm = NULL;