[PATCH] add debug info for the readability of log

Li Jian jian.li at tieto.com
Wed Jan 19 23:40:57 PST 2011


Some init/clean functions lack DBG("") which affect the readability of log

---
 src/dbus.c     |    4 ++++
 src/iptables.c |    2 ++
 src/ipv4.c     |    2 ++
 src/location.c |    3 +++
 src/ondemand.c |    4 ++++
 5 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/dbus.c b/src/dbus.c
index 3a732d8..1b3a4be 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -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;
 }
diff --git a/src/iptables.c b/src/iptables.c
index c799c25..9e7f717 100644
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -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);
diff --git a/src/ipv4.c b/src/ipv4.c
index c864c72..f6e436c 100644
--- a/src/ipv4.c
+++ b/src/ipv4.c
@@ -161,6 +161,8 @@ static struct connman_driver ipv4_driver = {
 
 int __connman_ipv4_init(void)
 {
+	DBG("");
+
 	return connman_driver_register(&ipv4_driver);
 }
 
diff --git a/src/location.c b/src/location.c
index 6ea8b3e..e7bfdc0 100644
--- a/src/location.c
+++ b/src/location.c
@@ -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("");
 }
diff --git a/src/ondemand.c b/src/ondemand.c
index 2d8cf93..521800c 100644
--- a/src/ondemand.c
+++ b/src/ondemand.c
@@ -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);
 }
-- 
1.7.0.4




More information about the connman mailing list