diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-24 18:33:49 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-24 18:51:02 +0100 |
commit | a3ebfa26c31c0f81a60e6764cb7d5cd66b329c49 (patch) | |
tree | 387bcb67e8bb01ac13f7d4051f4ec71db248fa95 | |
parent | 282da0d5d153abf8d51159aefd2c7c55fa7ee103 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |