summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-07 10:38:33 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-07 10:38:33 +0100
commitfe110904edd006a03a7bf5864e3fe50eb854a8d3 (patch)
tree1652039063bf5c02bf42f8911569a089f6a3c65e
parent97dd06748b97cb540b8ac6e945e5e142adab0200 (diff)
downloadModemManager-fe110904edd006a03a7bf5864e3fe50eb854a8d3.tar.gz
port-probe: log the list of probing tasks to be run
-rw-r--r--src/mm-port-probe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index 744889d06..cb15416c2 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -32,6 +32,7 @@
#include "libqcdm/src/utils.h"
#include "libqcdm/src/errors.h"
#include "mm-qcdm-serial-port.h"
+#include "mm-daemon-enums-types.h"
/*
* Steps and flow of the Probing process:
@@ -708,6 +709,7 @@ mm_port_probe_run (MMPortProbe *self,
{
PortProbeRunTask *task;
guint32 i;
+ gchar *probe_list_str;
g_return_if_fail (MM_IS_PORT_PROBE (self));
g_return_if_fail (flags != 0);
@@ -753,6 +755,12 @@ mm_port_probe_run (MMPortProbe *self,
task->flags |= MM_PORT_PROBE_AT;
}
+ probe_list_str = mm_port_probe_flag_build_string_from_mask (task->flags);
+ mm_info ("(%s) launching port probing: '%s'",
+ self->priv->name,
+ probe_list_str);
+ g_free (probe_list_str);
+
/* If any AT probing is needed, start by opening as AT port */
if (task->flags & MM_PORT_PROBE_AT) {
task->source_id = g_idle_add ((GSourceFunc)serial_open_at, self);