summaryrefslogtreecommitdiffstats
path: root/plugins/udev.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-07-29 14:55:56 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-29 14:55:56 +0200
commit342a5bbd1a7f3ecf67d1bd7dd8c80a1cd50727e7 (patch)
treea1367b858b6ca4dff3668ebe5a2219423e516ce8 /plugins/udev.c
parentefcfbe9d9d161da7238ee9317ff12e5f125e3015 (diff)
downloadofono-342a5bbd1a7f3ecf67d1bd7dd8c80a1cd50727e7.tar.bz2
udev: Add extra debug statements for device actions
Diffstat (limited to 'plugins/udev.c')
-rw-r--r--plugins/udev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/udev.c b/plugins/udev.c
index abd08614..ed999985 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -828,6 +828,8 @@ static gboolean devpath_remove(gpointer key, gpointer value, gpointer user_data)
const char *path = value;
const char *devpath = user_data;
+ DBG("%s -> %s", path, devpath);
+
return g_str_equal(path, devpath);
}
@@ -854,6 +856,8 @@ static void remove_modem(struct udev_device *udev_device)
ofono_modem_remove(modem);
+ DBG("%s", devpath);
+
remove = g_strdup(devpath);
g_hash_table_foreach_remove(devpath_list, devpath_remove, remove);
@@ -929,6 +933,8 @@ static gboolean udev_event(GIOChannel *channel, GIOCondition cond,
if (action == NULL)
goto done;
+ DBG("subsystem %s %s", subsystem, action);
+
if (g_str_equal(action, "add") == TRUE) {
if (g_strcmp0(subsystem, "tty") == 0 ||
g_strcmp0(subsystem, "net") == 0 ||
@@ -941,6 +947,8 @@ static gboolean udev_event(GIOChannel *channel, GIOCondition cond,
remove_modem(device);
}
+ DBG("subsystem %s finished", subsystem);
+
done:
udev_device_unref(device);