From f63188eb261e631f929a6c47feb85b8ed9985856 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 5 May 2010 01:04:20 -0700 Subject: [PATCH] core: log modem data port --- src/mm-manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mm-manager.c b/src/mm-manager.c index b56c91f2..b28e3490 100644 --- a/src/mm-manager.c +++ b/src/mm-manager.c @@ -249,7 +249,7 @@ check_export_modem (MMManager *self, MMModem *modem) /* No outstanding port tasks, so if the modem is valid we can export it */ if (mm_modem_get_valid (modem)) { static guint32 id = 0; - char *path, *device; + char *path, *device, *data_device = NULL; path = g_strdup_printf (MM_DBUS_PATH"/Modems/%d", id++); dbus_g_connection_register_g_object (priv->connection, path, G_OBJECT (modem)); @@ -260,6 +260,10 @@ check_export_modem (MMManager *self, MMModem *modem) g_debug ("Exported modem %s as %s", device, path); g_free (device); + g_object_get (G_OBJECT (modem), MM_MODEM_DATA_DEVICE, &data_device, NULL); + g_debug ("(%s): data port is %s", path, data_device); + g_free (data_device); + g_signal_emit (self, signals[DEVICE_ADDED], 0, modem); } }