Add debug info
authorLi Jian <jian.li@tieto.com>
Thu, 20 Jan 2011 07:40:57 +0000 (15:40 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 22 Jan 2011 00:48:08 +0000 (01:48 +0100)
Some init/clean functions lack DBG("") which affects logs readability.

src/dbus.c
src/iptables.c
src/ipv4.c
src/location.c
src/ondemand.c

index 3a732d8..1b3a4be 100644 (file)
@@ -280,6 +280,8 @@ DBusConnection *connman_dbus_get_connection(void)
 
 int __connman_dbus_init(DBusConnection *conn)
 {
+       DBG("");
+
        connection = conn;
 
        return 0;
@@ -287,5 +289,7 @@ int __connman_dbus_init(DBusConnection *conn)
 
 void __connman_dbus_cleanup(void)
 {
+       DBG("");
+
        connection = NULL;
 }
index c799c25..9e7f717 100644 (file)
@@ -1334,6 +1334,8 @@ int __connman_iptables_init(void)
 
 void __connman_iptables_cleanup(void)
 {
+       DBG("");
+
        g_hash_table_destroy(table_hash);
 
        xtables_free_opts(1);
index c864c72..f6e436c 100644 (file)
@@ -161,6 +161,8 @@ static struct connman_driver ipv4_driver = {
 
 int __connman_ipv4_init(void)
 {
+       DBG("");
+
        return connman_driver_register(&ipv4_driver);
 }
 
index 6ea8b3e..e7bfdc0 100644 (file)
@@ -275,9 +275,12 @@ int __connman_location_finish(struct connman_service *service)
 
 int __connman_location_init(void)
 {
+       DBG("");
+
        return 0;
 }
 
 void __connman_location_cleanup(void)
 {
+       DBG("");
 }
index 2d8cf93..521800c 100644 (file)
@@ -83,10 +83,14 @@ int connman_ondemand_start(const char *bearer, unsigned int idle_timeout)
 
 int __connman_ondemand_init(void)
 {
+       DBG("");
+
        return connman_notifier_register(&ondemand_notifier);
 }
 
 void __connman_ondemand_cleanup(void)
 {
+       DBG("");
+
        connman_notifier_unregister(&ondemand_notifier);
 }