From 149de0c113156fb723d4537e3a599d82965c027b Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 17 Mar 2023 15:14:19 +0100 Subject: [PATCH] lchan: Improve error path logging in gsm_pchan2chan_nr() Change-Id: I8d9da8e8433feb1f022dc2f5199f9c15c01e9312 --- src/common/lchan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/lchan.c b/src/common/lchan.c index 0402c175e..638f30aa4 100644 --- a/src/common/lchan.c +++ b/src/common/lchan.c @@ -367,13 +367,13 @@ static uint8_t gsm_pchan2chan_nr(enum gsm_phys_chan_config pchan, cbits = ABIS_RSL_CHAN_NR_CBITS_BCCH; break; case GSM_PCHAN_NONE: - LOGP(DRSL, LOGL_ERROR, "Physical channel %s not expected!\n", - gsm_pchan_name(pchan)); + LOGP(DRSL, LOGL_ERROR, "ts=%u,ss=%u Physical channel %s not expected!\n", + ts_nr, lchan_nr, gsm_pchan_name(pchan)); cbits = 0x00; break; default: - LOGP(DRSL, LOGL_ERROR, "Physical channel %s (0x%02x) not expected!\n", - gsm_pchan_name(pchan), (int)pchan); + LOGP(DRSL, LOGL_ERROR, "ts=%u,ss=%u Physical channel %s (0x%02x) not expected!\n", + ts_nr, lchan_nr, gsm_pchan_name(pchan), (int)pchan); OSMO_ASSERT(0); break; }