aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-06-16 18:53:14 +0200
committerHarald Welte <laforge@gnumonks.org>2016-06-17 15:50:48 +0000
commitb231e0f6cd1014afc0121ca056ca92ea467061dd (patch)
treeb81511de0fc02ecd988fbb58fb5eafadf301f8a9
parent63b296bdd9a25134ee61ce6f269750e796a8bfca (diff)
error log: two minor clarifications
-rw-r--r--src/common/pcu_sock.c6
-rw-r--r--src/common/rsl.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index cfffb2e..d52cdb1 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -556,8 +556,10 @@ static int pcu_rx_act_req(struct gsm_bts *bts,
lchan = trx->ts[act_req->ts_nr].lchan;
lchan->rel_act_kind = LCHAN_REL_ACT_PCU;
if (lchan->type != GSM_LCHAN_PDTCH) {
- LOGP(DPCU, LOGL_ERROR, "Lchan is not of type PDCH, but %d.\n",
- lchan->type);
+ LOGP(DPCU, LOGL_ERROR,
+ "%s request, but lchan is not of type PDTCH (is %s)\n",
+ (act_req->activate) ? "Activate" : "Deactivate",
+ gsm_lchant_name(lchan->type));
return -EINVAL;
}
if (act_req->activate)
diff --git a/src/common/rsl.c b/src/common/rsl.c
index adf17f6..224a41a 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -755,7 +755,7 @@ static int rsl_rx_chan_activ(struct msgb *msg)
if (lchan->state != LCHAN_S_NONE) {
LOGP(DRSL, LOGL_ERROR,
- "%s: error lchan is not available state: %s.\n",
+ "%s: error: lchan is not available, but in state: %s.\n",
gsm_lchan_name(lchan), gsm_lchans_name(lchan->state));
return rsl_tx_chan_act_nack(lchan, RSL_ERR_EQUIPMENT_FAIL);
}