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/simtech | |
parent | 8d74b11bd3a5627490a25c52ffddae0843c2ee49 (diff) |
plugins: log about all port type hints received from udev
Diffstat (limited to 'plugins/simtech')
-rw-r--r-- | plugins/simtech/mm-plugin-simtech.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/simtech/mm-plugin-simtech.c b/plugins/simtech/mm-plugin-simtech.c index 80eca362..9923cb7d 100644 --- a/plugins/simtech/mm-plugin-simtech.c +++ b/plugins/simtech/mm-plugin-simtech.c @@ -21,6 +21,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> +#include "mm-log.h" #include "mm-plugin-simtech.h" #include "mm-broadband-modem-simtech.h" @@ -73,10 +74,17 @@ grab_port (MMPlugin *self, * be the data/primary port on these devices. We have to tag them based on * what the Windows .INF files say the port layout should be. */ - if (g_udev_device_get_property_as_boolean (port, "ID_MM_SIMTECH_PORT_TYPE_MODEM")) + if (g_udev_device_get_property_as_boolean (port, "ID_MM_SIMTECH_PORT_TYPE_MODEM")) { + mm_dbg ("Simtech: 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_SIMTECH_PORT_TYPE_AUX")) + } else if (g_udev_device_get_property_as_boolean (port, "ID_MM_SIMTECH_PORT_TYPE_AUX")) { + mm_dbg ("Simtech: 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 the port was tagged by the udev rules but isn't a primary or secondary, * then ignore it to guard against race conditions if a device just happens |