aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChan-yeol Park <chanyeol.park@samsung.com>2012-04-16 20:56:33 +0900
committerJohan Hedberg <johan.hedberg@intel.com>2012-04-16 22:54:14 +0300
commit2a9b107d818159c90caf9487e23f9a71b317bd8b (patch)
tree0436b7615ea80ddd3333a0c273e034f25253df15
parent8434b7c7726d226ea9d3247d55daefd6e070684a (diff)
downloadbluez-2a9b107d818159c90caf9487e23f9a71b317bd8b.tar.gz
bluez-2a9b107d818159c90caf9487e23f9a71b317bd8b.tar.xz
bluez-2a9b107d818159c90caf9487e23f9a71b317bd8b.zip
adapter: Add warning if there is no authorization agent
Sometimes BlueZ Agent is disappear suddenly or not registered because of agent problem. but Bluez just prints "Operation Not permiited" This will help debugging.
-rw-r--r--src/adapter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index d9d7c198..12b6aeb2 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -3106,6 +3106,7 @@ static int adapter_authorize(struct btd_adapter *adapter, const bdaddr_t *dst,
agent = device_get_agent(device);
if (!agent) {
+ warn("Can't find device agent");
g_free(auth);
return -EPERM;
}