summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-06-12 06:58:46 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-06-12 06:58:46 +0000
commitb95353476941aa01b20d52d67fd35ddeba668167 (patch)
treebf50b7697c3ff37bc947f185249f0cf10a7608f7
parentcaab6d5c5ecd6e093429ecaa46efc7b3754ac8c6 (diff)
Add some extra debugs to track device creation
-rw-r--r--hcid/adapter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index 59eceafd..b5e179b2 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -307,6 +307,8 @@ static struct bonding_request_info *bonding_request_new(DBusConnection *conn,
struct bonding_request_info *bonding;
struct device *device;
+ debug("bonding_request_new(%s)", address);
+
if (hcid_dbus_use_experimental() && agent_path) {
const char *name = dbus_message_get_sender(msg);
@@ -2321,6 +2323,8 @@ struct device *adapter_create_device(DBusConnection *conn,
{
struct device *device;
+ debug("adapter_create_device(%s)", address);
+
device = device_create(conn, adapter, address, NULL);
if (!device)
return NULL;
@@ -2460,6 +2464,8 @@ struct device *adapter_get_device(DBusConnection *conn,
{
struct device *device;
+ debug("adapter_get_device(%s)", address);
+
if (!adapter)
return NULL;
@@ -3889,6 +3895,8 @@ static DBusMessage *create_device(DBusConnection *conn,
ERROR_INTERFACE ".AlreadyExists",
"Device already exists");
+ debug("create_device(%s)", address);
+
device = device_create(conn, adapter, address, NULL);
if (!device)
return NULL;