From 2a9b107d818159c90caf9487e23f9a71b317bd8b Mon Sep 17 00:00:00 2001 From: Chan-yeol Park Date: Mon, 16 Apr 2012 20:56:33 +0900 Subject: [PATCH] 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. --- src/adapter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/adapter.c b/src/adapter.c index d9d7c1980..12b6aeb2f 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; } -- 2.47.3