diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-02-26 20:57:37 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-02-26 21:02:12 +0100 |
commit | 3f3950bd12e4e09bf6505e7a3f96acdee924ad1c (patch) | |
tree | 3a82629283d22cc7f4695c911f620dac66877890 /plugins/zte/mm-plugin-zte.c | |
parent | 8d74b11bd3a5627490a25c52ffddae0843c2ee49 (diff) |
plugins: log about all port type hints received from udev
Diffstat (limited to 'plugins/zte/mm-plugin-zte.c')
-rw-r--r-- | plugins/zte/mm-plugin-zte.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/zte/mm-plugin-zte.c b/plugins/zte/mm-plugin-zte.c index da3cc06a..59d4380d 100644 --- a/plugins/zte/mm-plugin-zte.c +++ b/plugins/zte/mm-plugin-zte.c @@ -98,14 +98,21 @@ grab_port (MMPlugin *self, if (mm_port_probe_is_at (probe)) { /* Look for port type hints */ - if (g_udev_device_get_property_as_boolean (port, "ID_MM_ZTE_PORT_TYPE_MODEM")) + if (g_udev_device_get_property_as_boolean (port, "ID_MM_ZTE_PORT_TYPE_MODEM")) { + mm_dbg ("ZTE: AT port '%s/%s' flagged as primary", + mm_port_probe_get_port_subsys (probe), + mm_port_probe_get_port_name (probe)); pflags = MM_AT_PORT_FLAG_PRIMARY; - else if (g_udev_device_get_property_as_boolean (port, "ID_MM_ZTE_PORT_TYPE_AUX")) + } else if (g_udev_device_get_property_as_boolean (port, "ID_MM_ZTE_PORT_TYPE_AUX")) { + mm_dbg ("ZTE: AT port '%s/%s' flagged as secondary", + mm_port_probe_get_port_subsys (probe), + mm_port_probe_get_port_name (probe)); pflags = MM_AT_PORT_FLAG_SECONDARY; + } } if (g_udev_device_get_property_as_boolean (port, "ID_MM_ZTE_ICERA_DHCP")) { - mm_dbg ("Icera-based ZTE modem will use DHCP"); + mm_dbg ("ZTE: Icera-based modem will use DHCP"); g_object_set (modem, MM_BROADBAND_MODEM_ICERA_DEFAULT_IP_METHOD, MM_BEARER_IP_METHOD_DHCP, NULL); |