diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-06-06 13:23:03 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-06-06 13:23:03 +0000 |
commit | 5a63456081d0ba9cc8bdc66f17afe003788c9b33 (patch) | |
tree | 84039432167f409689004275467bbb19eb3b8555 | |
parent | ac3d6b6a176fb397e6c62be71cb99fa46c739c31 (diff) |
Add debug prints for agent registration
-rw-r--r-- | hcid/adapter.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c index c691b204..e62508d1 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -308,15 +308,19 @@ static struct bonding_request_info *bonding_request_new(DBusConnection *conn, struct device *device; if (hcid_dbus_use_experimental() && agent_path) { + const char *name = dbus_message_get_sender(msg); + device = adapter_get_device(conn, adapter, address); if (!device) return NULL; - device->agent = agent_create(adapter, - dbus_message_get_sender(msg), - agent_path, capability, + device->agent = agent_create(adapter, name, agent_path, + capability, device_agent_removed, device); + debug("Temporary agent registered for hci%d/%s at %s:%s", + adapter->dev_id, device->address, name, + agent_path); } bonding = g_new0(struct bonding_request_info, 1); @@ -4032,6 +4036,9 @@ static DBusMessage *register_agent(DBusConnection *conn, adapter->agent = agent; + debug("Agent registered for hci%d at %s:%s", adapter->dev_id, name, + path); + return dbus_message_new_method_return(msg); } |