Skip to contentSkip to conversation

huawei: show used tty devices in the debug log

PATCH New Kalle Valo 1 participant 1 message Jun 7, 2010

lore
Share & tools
lore

Kalle Valo

author
#0 lore raw

PATCH 1/1 huawei: show used tty devices in the debug log

Handy when debugging udev problems.

---
 plugins/huawei.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
plugins/huawei.c +2 -2
index 9e50288..63dd06a 100644
@@ -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;