From b9f3e14ba64e757eac8c2288fc7f17b2dd07959c Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Tue, 18 Sep 2018 03:58:26 +0700 Subject: 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 --- src/common/rsl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/common/rsl.c') 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)); msgb_free(msg); return 0; } -- cgit v1.2.3