mirror of https://gerrit.osmocom.org/libosmocore
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.
This commit is contained in:
parent
e47523874d
commit
1512ea6452
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue