diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-28 23:04:11 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-28 23:04:11 +0200 |
commit | 670c7b9e5498f236fe777ac147f1cbe4a72ee03b (patch) | |
tree | 073951f63566701cafeed03f5e762fe0ef467ef6 | |
parent | 3c4c6c2db36c9a00c63da69b29083877cd40b77b (diff) |
qmi-bearer: use new enum types for call end reasonsqmi-support
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
-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)); } } } |