diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-01-20 11:35:48 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-03-24 09:05:04 +0100 |
commit | fb0c9f06132769336ab2f01f6b01e369f48f3575 (patch) | |
tree | 3c8b519f14c6aaa02c13d83bf9136e454e225539 /src/common/measurement.c | |
parent | 9d91c60875548cb7e74b51a3d6bb0ec1b001a672 (diff) |
measurement: Add debug helper when we have a report for an inactive channel
Diffstat (limited to 'src/common/measurement.c')
-rw-r--r-- | src/common/measurement.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/measurement.c b/src/common/measurement.c index e2b9ff9e..b79cb438 100644 --- a/src/common/measurement.c +++ b/src/common/measurement.c @@ -92,6 +92,11 @@ int lchan_new_ul_meas(struct gsm_lchan *lchan, struct bts_ul_meas *ulm) DEBUGP(DMEAS, "%s adding measurement, num_ul_meas=%d\n", gsm_lchan_name(lchan), lchan->meas.num_ul_meas); + if (lchan->state != LCHAN_S_ACTIVE) { + LOGP(DMEAS, LOGL_NOTICE, "%s measurement during state: %s\n", + gsm_lchan_name(lchan), gsm_lchans_name(lchan->state)); + } + if (lchan->meas.num_ul_meas >= ARRAY_SIZE(lchan->meas.uplink)) { LOGP(DMEAS, LOGL_NOTICE, "%s no space for uplink measurement\n", gsm_lchan_name(lchan)); |