aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-simple.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-10-08 15:06:38 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-10-17 08:07:10 +0000
commitf228d0dd6fb06f6b6268a988f00f903acfcc4a09 (patch)
tree6202d67c42846c874696d3a9d2441a9e0fe46375 /src/mm-iface-modem-simple.c
parent667d1613a83ccc8bc7956193c0da5ec3bf1a6599 (diff)
base-bearer,iface-modem-simple: log user requests to connect/disconnect
Diffstat (limited to 'src/mm-iface-modem-simple.c')
-rw-r--r--src/mm-iface-modem-simple.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mm-iface-modem-simple.c b/src/mm-iface-modem-simple.c
index 5f96523a..f39e2df1 100644
--- a/src/mm-iface-modem-simple.c
+++ b/src/mm-iface-modem-simple.c
@@ -736,6 +736,8 @@ handle_connect (MmGdbusModemSimple *skeleton,
ctx->self = g_object_ref (self);
ctx->dictionary = g_variant_ref (dictionary);
+ mm_dbg ("User request to connect modem");
+
mm_base_modem_authorize (MM_BASE_MODEM (self),
invocation,
MM_AUTHORIZATION_DEVICE_CONTROL,
@@ -885,8 +887,11 @@ handle_disconnect (MmGdbusModemSimple *skeleton,
*
* We will detect the '/' string and set the bearer path as NULL in the
* context if so, and otherwise use the given input string as path */
- if (g_strcmp0 (bearer_path, "/") != 0)
+ if (g_strcmp0 (bearer_path, "/") != 0) {
+ mm_dbg ("User request to disconnect modem (bearer '%s')", bearer_path);
ctx->bearer_path = g_strdup (bearer_path);
+ } else
+ mm_dbg ("User request to disconnect modem (all bearers)");
mm_base_modem_authorize (MM_BASE_MODEM (self),
invocation,