diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-28 23:04:11 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-29 17:26:47 +0200 |
commit | 72602a395105006736ecf5829ba33ffcefce3692 (patch) | |
tree | 9efd6351a32a12fb7b3ea011ca10593b8e66052b /src | |
parent | 4cb6c42d6cea99f9dc674f5f38fe7d781d19becd (diff) |
qmi-bearer: use new enum types for call end reasons
Sync with libqmi:
commit d473f9ab35b85b76ebd6510a69a49ffa141d85f1
Author: Aleksander Morgado <aleksander@lanedo.com>
Date: Tue Aug 28 13:18:44 2012 +0200
wds: implement "Verbose Call End Reason" types
commit d39c997771da9a8037e61f1b4fc5ccfbb34be952
Author: Aleksander Morgado <aleksander@lanedo.com>
Date: Mon Aug 27 20:29:16 2012 +0200
wds: implement "Call End Reason" type
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-bearer-qmi.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index 0643c3af..f6a5065c 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -177,24 +177,28 @@ start_network_ready (QmiClientWds *client, if (g_error_matches (error, QMI_PROTOCOL_ERROR, QMI_PROTOCOL_ERROR_CALL_FAILED)) { - guint16 cer; - guint16 verbose_cer_type; - guint16 verbose_cer_reason; + QmiWdsCallEndReason cer; + QmiWdsVerboseCallEndReasonType verbose_cer_type; + gint16 verbose_cer_reason; if (qmi_message_wds_start_network_output_get_call_end_reason ( output, &cer, NULL)) - mm_info ("call end reason: %u", cer); + mm_info ("call end reason (%u): '%s'", + cer, + qmi_wds_call_end_reason_get_string (cer)); if (qmi_message_wds_start_network_output_get_verbose_call_end_reason ( output, &verbose_cer_type, &verbose_cer_reason, NULL)) - mm_info ("verbose call end reason: %u, %u", + mm_info ("verbose call end reason (%u,%d): [%s] %s", verbose_cer_type, - verbose_cer_reason); + verbose_cer_reason, + qmi_wds_verbose_call_end_reason_type_get_string (verbose_cer_type), + qmi_wds_verbose_call_end_reason_get_string (verbose_cer_type, verbose_cer_reason)); } } } |