diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-16 23:59:58 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-16 23:59:58 +0100 |
commit | 1512ea6452c123fbf7da325422b4378d64b90087 (patch) | |
tree | ae48ec21c15f3d040d652d69e9e5f43554833049 /src | |
parent | e47523874da2e79e79f149f433d6a53f230dc30c (diff) |
lapd: Improve log message and mention the SAPI the dl is on
When debugging an issue that involves SAPI=0 and SAPI=3 the
log file does not have enough context. Add the SAPI to this
message so we at least understand which SAPI we are talking
about.
Diffstat (limited to 'src')
-rw-r--r-- | src/gsm/lapd_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c index 0d8f1282..ef1d22a7 100644 --- a/src/gsm/lapd_core.c +++ b/src/gsm/lapd_core.c @@ -1455,8 +1455,8 @@ static int lapd_rx_i(struct msgb *msg, struct lapd_msg_ctx *lctx) int length = lctx->length; int rc; - LOGP(DLLAPD, LOGL_INFO, "I received in state %s\n", - lapd_state_names[dl->state]); + LOGP(DLLAPD, LOGL_INFO, "I received in state %s on SAPI(%u)\n", + lapd_state_names[dl->state], lctx->sapi); /* G.2.2 Wrong value of the C/R bit */ if (lctx->cr == dl->cr.rem2loc.resp) { |