aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-virtual
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-09-16 17:29:51 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-09-16 19:28:38 +0200
commit666adf6a9781fced8543241dad14a65d01510858 (patch)
treee1797c8446583dff8c11814baf9793ec84b2aa5e /src/osmo-bts-virtual
parentf1222fc7243d6af0a7552b23730d7cc91c2dbb2c (diff)
Improve logging around failing to (de)activate chan_nr
Diffstat (limited to 'src/osmo-bts-virtual')
-rw-r--r--src/osmo-bts-virtual/l1_if.c8
1 files changed, 4 insertions, 4 deletions
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 */