diff options
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-08-22 18:40:07 +0200
committerHarald Welte <laforge@gnumonks.org>2016-09-17 09:58:53 +0000
commitb3d8706bea1e0510243994cb65a3e5f9eb8d147d (patch)
parentaa386d29fd6b0e6ceecaf01d51f621a89f5a6720 (diff)
log: abis_rsl: don't log 'error' when there is no error
The message 'RF Channel Release due error 0' keeps catching my eye because it says 'error' even though the error code is zero, i.e. no error. This shall end now. Change-Id: Ie0b9d62e8ce85a096c963931e0ae5527b8dc490a
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c
index 4c8448ed5..d3d9f9e2d 100644
--- a/openbsc/src/libbsc/abis_rsl.c
+++ b/openbsc/src/libbsc/abis_rsl.c
@@ -803,7 +803,11 @@ static int rsl_rf_chan_release(struct gsm_lchan *lchan, int error,
msg->lchan = lchan;
msg->dst = lchan->ts->trx->rsl_link;
- DEBUGP(DRSL, "%s RF Channel Release CMD due error %d\n", gsm_lchan_name(lchan), error);
+ if (error)
+ DEBUGP(DRSL, "%s RF Channel Release due to error: %d\n",
+ gsm_lchan_name(lchan), error);
+ else
+ DEBUGP(DRSL, "%s RF Channel Release\n", gsm_lchan_name(lchan));
if (error) {