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
This commit is contained in:
Neels Hofmeyr 2016-08-22 18:40:07 +02:00 committed by Harald Welte
parent aa386d29fd
commit b3d8706bea
1 changed files with 5 additions and 1 deletions

View File

@ -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) {
/*