[PATCH 2/2] Add warning if there is no authorization agent |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: [PATCH 2/2] Add warning if there is no authorization agent
- From: chanyeol.park@xxxxxxxxxxx
- Date: Mon, 16 Apr 2012 17:27:00 +0900
- In-reply-to: <1334562608.16897.164.camel@aeonflux>
- References: <1334562608.16897.164.camel@aeonflux>
From: Chan-yeol Park <chanyeol.park@xxxxxxxxxxx>
Sometimes BlueZ Agent is disappear suddenly or not registered
because of agent problem. but Bluez just prints "Operation Not
permiited"
This will help debugging.
---
audio/manager.c | 2 +-
src/adapter.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/audio/manager.c b/audio/manager.c
index aa2547c..20453e6 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -604,7 +604,7 @@ static void hf_io_cb(GIOChannel *chan, gpointer data)
perr = audio_device_request_authorization(device, server_uuid,
gateway_auth_cb, device);
if (perr < 0) {
- DBG("Authorization denied!");
+ DBG("Authorization denied: %s", strerror(-perr));
gateway_set_state(device, GATEWAY_STATE_DISCONNECTED);
}
diff --git a/src/adapter.c b/src/adapter.c
index d10db10..a5bab34 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -3107,6 +3107,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;
}
--
1.7.5.4
--
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
[Bluez Devel]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Bluez Devel]
[Linux Kernel]
[Linux SCSI]
[XFree86]
[Devices]
[Big List of Linux Books]