aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers-mbim.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2024-09-10 13:56:20 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2024-09-11 11:01:19 +0000
commita1f2d8c99b396887206d7a9dde50eef8c2e31c76 (patch)
tree4a9878a3d1c71d0e8f241ec640bd9a5b2212e0e4 /src/mm-modem-helpers-mbim.h
parent4748ebf300e8fbfef032d56d6a046253583d50d7 (diff)
broadband-modem-mbim: log hex value of IP type if unknown
The L850 seems to report 0xFFFFFFFF as MbimContextIpType value, which is not a correct value. Instead of printing "(none)" (the default used by glib when trying to print a NULL pointer as a string), make it so that we end up printing the actual numeric value in hex. <dbg> [modem0] 'home' settings found at configuration index 0 <dbg> [modem0] 'non-partner' settings found at configuration index 1 <dbg> [modem0] 'partner' settings not found <dbg> [modem0] updates in the home LTE attach configuration settings: <dbg> [modem0] ip type: 'unknown (0xffffffff)' -> ''ipv4v6' <dbg> [modem0] updates in the partner LTE attach configuration settings: <dbg> [modem0] none (skipped) <dbg> [modem0] updates in the non-partner LTE attach configuration settings: <dbg> [modem0] none
Diffstat (limited to 'src/mm-modem-helpers-mbim.h')
-rw-r--r--src/mm-modem-helpers-mbim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-modem-helpers-mbim.h b/src/mm-modem-helpers-mbim.h
index ca5b1e21..ba664bbb 100644
--- a/src/mm-modem-helpers-mbim.h
+++ b/src/mm-modem-helpers-mbim.h
@@ -60,9 +60,11 @@ MMBearerAllowedAuth mm_bearer_allowed_auth_from_mbim_auth_protocol (MbimAuthProt
MbimAuthProtocol mm_bearer_allowed_auth_to_mbim_auth_protocol (MMBearerAllowedAuth bearer_auth,
gpointer log_object,
GError **error);
+gchar *mm_mbim_auth_protocol_get_printable (MbimAuthProtocol auth_protocol);
MMBearerIpFamily mm_bearer_ip_family_from_mbim_context_ip_type (MbimContextIpType ip_type);
MbimContextIpType mm_bearer_ip_family_to_mbim_context_ip_type (MMBearerIpFamily ip_family,
GError **error);
+gchar *mm_mbim_context_ip_type_get_printable (MbimContextIpType ip_type);
MMBearerApnType mm_bearer_apn_type_from_mbim_context_type (MbimContextType context_type);
MbimContextType mm_bearer_apn_type_to_mbim_context_type (MMBearerApnType apn_type,
gboolean mbim_extensions_supported,