diff options
-rw-r--r-- | src/mm-base-bearer.c | 4 | ||||
-rw-r--r-- | src/mm-iface-modem-simple.c | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/mm-base-bearer.c b/src/mm-base-bearer.c index f8323231..222e123d 100644 --- a/src/mm-base-bearer.c +++ b/src/mm-base-bearer.c @@ -927,6 +927,8 @@ handle_connect (MMBaseBearer *self, MM_BASE_BEARER_MODEM, &ctx->modem, NULL); + mm_dbg ("User request to connect bearer '%s'", self->priv->path); + mm_base_modem_authorize (ctx->modem, invocation, MM_AUTHORIZATION_DEVICE_CONTROL, @@ -1118,6 +1120,8 @@ handle_disconnect (MMBaseBearer *self, MM_BASE_BEARER_MODEM, &ctx->modem, NULL); + mm_dbg ("User request to disconnect bearer '%s'", self->priv->path); + mm_base_modem_authorize (ctx->modem, invocation, MM_AUTHORIZATION_DEVICE_CONTROL, 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, |