From aab9ac519168af62fa53ec71837bdd371dd32a62 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 24 Mar 2016 18:33:49 +0100 Subject: mncc: Log commands in hex to find the name more easily in mncc_protocol.h In the long run we should print these by name and not by the number but as the table is in OpenBSC and I did not want to copy it we will have to cope with the numbers a little longer. --- src/mncc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mncc.c b/src/mncc.c index e10bfc3..a44ecad 100644 --- a/src/mncc.c +++ b/src/mncc.c @@ -43,7 +43,7 @@ static void cmd_timeout(void *data) { struct mncc_call_leg *leg = data; - LOGP(DMNCC, LOGL_ERROR, "cmd(%u) never arrived for leg(%u)\n", + LOGP(DMNCC, LOGL_ERROR, "cmd(0x%x) never arrived for leg(%u)\n", leg->rsp_wanted, leg->callref); call_leg_release(&leg->base); } @@ -66,7 +66,8 @@ static void stop_cmd_timer(struct mncc_call_leg *leg, uint32_t got_res) } LOGP(DMNCC, LOGL_DEBUG, - "Got response, stopping timer on leg(%u)\n", leg->callref); + "Got response(0x%x), stopping timer on leg(%u)\n", + got_res, leg->callref); osmo_timer_del(&leg->cmd_timeout); } -- cgit v1.2.3