From 666adf6a9781fced8543241dad14a65d01510858 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 16 Sep 2020 17:29:51 +0200 Subject: Improve logging around failing to (de)activate chan_nr Change-Id: Ibc398eb5d50851cbe48f2c92f14e746938a68720 --- src/osmo-bts-virtual/l1_if.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/osmo-bts-virtual') diff --git a/src/osmo-bts-virtual/l1_if.c b/src/osmo-bts-virtual/l1_if.c index 8e84579f..ed3b6019 100644 --- a/src/osmo-bts-virtual/l1_if.c +++ b/src/osmo-bts-virtual/l1_if.c @@ -383,8 +383,8 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap) * e.g. as a response to a channel req on RACH */ if (l1sap->u.info.type == PRIM_INFO_ACTIVATE) { if ((chan_nr & 0xE0) == 0x80) { - LOGP(DL1C, LOGL_ERROR, "Cannot activate" - " chan_nr 0x%02x\n", chan_nr); + LOGPLCHAN(lchan, DL1C, LOGL_ERROR, "Cannot activate" + " channel %s\n", rsl_chan_nr_str(chan_nr)); break; } /* activate dedicated channel */ @@ -432,8 +432,8 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap) break; } if ((chan_nr & 0xE0) == 0x80) { - LOGP(DL1C, LOGL_ERROR, "Cannot deactivate " - "chan_nr 0x%02x\n", chan_nr); + LOGPLCHAN(lchan, DL1C, LOGL_ERROR, "Cannot deactivate" + " channel %s\n", rsl_chan_nr_str(chan_nr)); break; } /* deactivate associated channel */ -- cgit v1.2.3