voicecall: use ofono_call_status_name in DBG messages

status names are more readable then integer values.
This commit is contained in:
Alexander Couzens 2017-09-08 00:27:33 +02:00 committed by Denis Kenzior
parent 9b16b2c23c
commit 8e6ac330a5
1 changed files with 4 additions and 3 deletions

View File

@ -2250,9 +2250,10 @@ void ofono_voicecall_notify(struct ofono_voicecall *vc,
struct voicecall *v = NULL;
struct ofono_call *newcall;
DBG("Got a voicecall event, status: %d, id: %u, number: %s"
" called_number: %s, called_name %s", call->status,
call->id, call->phone_number.number,
DBG("Got a voicecall event, status: %s (%d), id: %u, number: %s"
" called_number: %s, called_name %s",
call_status_to_string(call->status),
call->status, call->id, call->phone_number.number,
call->called_number.number, call->name);
l = g_slist_find_custom(vc->call_list, GUINT_TO_POINTER(call->id),