summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-07-17 14:43:29 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-07-17 14:43:29 -0700
commit9a72521d7b943beca7a2d4980b58c7345e2d09c9 (patch)
tree6bcc725cc45a96372eecd606159154db7691eefd
parent7c6758af2096dd03e11d3519118cb8a085d8a688 (diff)
downloadofono-9a72521d7b943beca7a2d4980b58c7345e2d09c9.tar.bz2
Add a little bit debug to udev modem detection
-rw-r--r--plugins/udev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/udev.c b/plugins/udev.c
index 75f8b6c9..0f2bad25 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -337,6 +337,8 @@ static void add_modem(struct udev_device *udev_device)
if (curpath == NULL)
return;
+ DBG("%s (%s)", curpath, driver);
+
g_hash_table_insert(devpath_list, g_strdup(curpath), g_strdup(devpath));
if (g_strcmp0(driver, "mbm") == 0)
@@ -366,6 +368,8 @@ static void remove_modem(struct udev_device *udev_device)
if (curpath == NULL)
return;
+ DBG("%s", curpath);
+
devpath = g_hash_table_lookup(devpath_list, curpath);
if (!devpath)
return;