huawei: show used tty devices in the debug log
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
@@ -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 ;