diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-08-24 14:42:58 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-08-27 02:23:47 +0000 |
commit | a0a08d80b8fe8712f24a222abca6a7f422c11417 (patch) | |
tree | 6dadebbb000452f54640882a752f02b67fdaf254 /openbsc/src/libbsc/abis_rsl.c | |
parent | d35fc4408c82193253e197aace9207fbe6d73b92 (diff) |
dyn TS: debug log 'switchover complete' only when there was a switchover
Change-Id: I7ddcb41edce1cd7b22fe91e33bdcaedb21856222
Diffstat (limited to 'openbsc/src/libbsc/abis_rsl.c')
-rw-r--r-- | openbsc/src/libbsc/abis_rsl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/libbsc/abis_rsl.c b/openbsc/src/libbsc/abis_rsl.c index 3cf1b250e..0acff2162 100644 --- a/openbsc/src/libbsc/abis_rsl.c +++ b/openbsc/src/libbsc/abis_rsl.c @@ -2538,8 +2538,9 @@ static void dyn_ts_switchover_complete(struct gsm_lchan *lchan) pchan_was = ts->dyn.pchan_is; ts->dyn.pchan_is = ts->dyn.pchan_want = pchan_act; - LOGP(DRSL, LOGL_INFO, "%s switchover from %s complete.\n", - gsm_ts_and_pchan_name(ts), gsm_pchan_name(pchan_was)); + if (pchan_was != ts->dyn.pchan_is) + LOGP(DRSL, LOGL_INFO, "%s switchover from %s complete.\n", + gsm_ts_and_pchan_name(ts), gsm_pchan_name(pchan_was)); } /* Entry-point where L2 RSL from BTS enters */ |