iface-modem-simple: add multiplex info in connection details logging

This commit is contained in:
Aleksander Morgado
2021-04-02 15:05:02 +02:00
parent c3fdaca4c8
commit 1db0f0b66f
+9 -3
View File
@@ -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
}