From 12e6a9a5778b17e758f9085bd9863226fcf39521 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 30 Dec 2008 22:46:03 +0100 Subject: [PATCH] Add more debug messages for interface registration --- src/device.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/device.c b/src/device.c index 10abe4d..5b7ac4f 100644 --- a/src/device.c +++ b/src/device.c @@ -426,6 +426,8 @@ static int register_interface(struct connman_element *element) { struct connman_device *device = element->device; + DBG("element %p name %s", element, element->name); + if (g_dbus_register_interface(connection, element->path, CONNMAN_DEVICE_INTERFACE, device_methods, device_signals, @@ -441,6 +443,8 @@ static int register_interface(struct connman_element *element) static void unregister_interface(struct connman_element *element) { + DBG("element %p name %s", element, element->name); + emit_devices_signal(); g_dbus_unregister_interface(connection, element->path, @@ -988,7 +992,7 @@ static int device_probe(struct connman_element *element) } } - if (!device->driver) + if (device->driver == NULL) return -ENODEV; err = register_interface(element); @@ -1012,7 +1016,7 @@ static void device_remove(struct connman_element *element) if (device == NULL) return; - if (!device->driver) + if (device->driver == NULL) return; device_disable(device); -- 2.7.4