[PATCH] huawei: show used tty devices in the debug log

Kalle Valo kalle.valo at canonical.com
Mon Jun 7 04:26:29 PDT 2010


Handy when debugging udev problems.
---
 plugins/huawei.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/huawei.c b/plugins/huawei.c
index 9e50288..63dd06a 100644
--- a/plugins/huawei.c
+++ b/plugins/huawei.c
@@ -201,11 +201,11 @@ static int huawei_enable(struct ofono_modem *modem)
 	struct huawei_data *data = ofono_modem_get_data(modem);
 	const char *modem_device, *event_device;
 
-	DBG("%p", modem);
-
 	modem_device = ofono_modem_get_string(modem, "Device");
 	event_device = ofono_modem_get_string(modem, "SecondaryDevice");
 
+	DBG("%p modem %s event %s", modem, modem_device, event_device);
+
 	if (modem_device == NULL || event_device == NULL)
 		return -EINVAL;
 



More information about the ofono mailing list