diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-04-04 11:53:36 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-04-08 16:35:09 +0200 |
commit | 39dd4c166d2750a00dfe1a3505a02bccaaf7f755 (patch) | |
tree | afe110b0ac5321b6f31c792c6c4b2c1facc85c85 /src/mm-modem-helpers.c | |
parent | 78cad902ef342d6da628f26e1282782aa8361316 (diff) |
modem-helpers: port clcc list parser to use object logging
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r-- | src/mm-modem-helpers.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index 67a5f0a6..4264e230 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -560,6 +560,7 @@ call_info_free (MMCallInfo *info) gboolean mm_3gpp_parse_clcc_response (const gchar *str, + gpointer log_object, GList **out_list, GError **error) { @@ -623,20 +624,20 @@ mm_3gpp_parse_clcc_response (const gchar *str, call_info = g_slice_new0 (MMCallInfo); if (!mm_get_uint_from_match_info (match_info, 1, &call_info->index)) { - mm_warn ("couldn't parse call index from +CLCC line"); + mm_obj_warn (log_object, "couldn't parse call index from +CLCC line"); goto next; } if (!mm_get_uint_from_match_info (match_info, 2, &aux) || (aux >= G_N_ELEMENTS (call_direction))) { - mm_warn ("couldn't parse call direction from +CLCC line"); + mm_obj_warn (log_object, "couldn't parse call direction from +CLCC line"); goto next; } call_info->direction = call_direction[aux]; if (!mm_get_uint_from_match_info (match_info, 3, &aux) || (aux >= G_N_ELEMENTS (call_state))) { - mm_warn ("couldn't parse call state from +CLCC line"); + mm_obj_warn (log_object, "couldn't parse call state from +CLCC line"); goto next; } call_info->state = call_state[aux]; |