summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-24 18:33:49 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-26 06:22:06 +0100
commitaab9ac519168af62fa53ec71837bdd371dd32a62 (patch)
tree9ad7bf2d2498051a7f9e5e6a182d0e048e44aca9
parentf86979e1eb88ab36f96bb90ac3f00fbd78e7f097 (diff)
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.
-rw-r--r--src/mncc.c5
1 files 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);
}