diff options
authorVadim Yanitskiy <axilirator@gmail.com>2018-09-18 03:58:26 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-09-19 13:15:19 +0700
commitb9f3e14ba64e757eac8c2288fc7f17b2dd07959c (patch)
parent9ce4d919486f7f567f9f4d6a1e34fde888fbbfd6 (diff)
common/rsl.c: tweak log message in lapdm_rll_tx_cb()
During the investigation of OS#3559, it was discovered that the log message, which warns that an RSL message was dropped due to inactive logical channel, has incorrect log level - LOGL_INFO. This is not informative kind of message, so let's increase the log level, and additionally let's print the hexdump of message and it's length. Change-Id: I26eac5e4466c493ffe08dbb89de20f5e1c2bb85d
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 2aa7f4de..601b1c1a 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -2671,8 +2671,9 @@ int lapdm_rll_tx_cb(struct msgb *msg, struct lapdm_entity *le, void *ctx)
rh = msgb_l2(msg);
if (lchan->state != LCHAN_S_ACTIVE) {
- LOGP(DRSL, LOGL_INFO, "%s(%s) is not active . Dropping message.\n",
- gsm_lchan_name(lchan), gsm_lchans_name(lchan->state));
+ LOGP(DRSL, LOGL_ERROR, "%s(%s) is not active. Dropping message (len=%u): %s\n",
+ gsm_lchan_name(lchan), gsm_lchans_name(lchan->state),
+ msgb_l2len(msg), msgb_hexdump_l2(msg));
return 0;