OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4807c6
)
input: add error message when auth fails
author
Gustavo Padovan
<gustavo@padovan.org>
Fri, 20 Apr 2012 17:36:15 +0000
(14:36 -0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Mon, 23 Apr 2012 10:13:49 +0000
(13:13 +0300)
input/server.c
patch
|
blob
|
history
diff --git
a/input/server.c
b/input/server.c
index
cea08d1
..
17e7547
100644
(file)
--- 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;