From 1db0f0b66fb69c08bd95aecf857e922979cc1247 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 1 Apr 2021 23:50:00 +0200 Subject: [PATCH] iface-modem-simple: add multiplex info in connection details logging --- src/mm-iface-modem-simple.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/mm-iface-modem-simple.c b/src/mm-iface-modem-simple.c index 3715f74e..00b8d894 100644 --- a/src/mm-iface-modem-simple.c +++ b/src/mm-iface-modem-simple.c @@ -689,9 +689,10 @@ connect_auth_ready (MMBaseModem *self, /* Log about all the parameters being used for the simple connect */ { - MMBearerAllowedAuth allowed_auth; - gchar *str; - MMBearerIpFamily ip_family; + MMBearerMultiplexSupport multiplex; + MMBearerAllowedAuth allowed_auth; + gchar *str; + MMBearerIpFamily ip_family; #define VALIDATE_UNSPECIFIED(str) (str ? str : "unspecified") @@ -719,6 +720,11 @@ connect_auth_ready (MMBaseModem *self, mm_obj_dbg (self, " user: %s", VALIDATE_UNSPECIFIED (mm_simple_connect_properties_get_user (ctx->properties))); mm_obj_dbg (self, " password: %s", VALIDATE_UNSPECIFIED (mm_simple_connect_properties_get_password (ctx->properties))); + multiplex = mm_simple_connect_properties_get_multiplex (ctx->properties); + mm_obj_dbg (self, " multiplex: %s", VALIDATE_UNSPECIFIED (multiplex != MM_BEARER_MULTIPLEX_SUPPORT_UNKNOWN ? + mm_bearer_multiplex_support_get_string (multiplex) : + NULL)); + #undef VALIDATE_UNSPECIFIED }