aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-16 13:31:36 +0200
committerdexter <pmaier@sysmocom.de>2017-06-26 13:48:10 +0000
commitd0846651a3c2120a661212d07106584267f66475 (patch)
tree15cb7f7e504e4478df07c87d809e986e0184a7b3
parent620bd83b129f8a216c68b2d57c509122e1538479 (diff)
measurement: improve log output
The code that receives the uplink measurement data from L1 does not print the number of already received uplink measurements. Since this is a valuable information when debugging the log output will now print this information as well. (Patch by Octasic Inc.) Change-Id: I79926f25de088571fcc2c14388c72fc968c2d382
-rw-r--r--src/common/measurement.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/measurement.c b/src/common/measurement.c
index 6050001..dba3543 100644
--- a/src/common/measurement.c
+++ b/src/common/measurement.c
@@ -146,13 +146,16 @@ int lchan_new_ul_meas(struct gsm_lchan *lchan, struct bts_ul_meas *ulm)
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));
+ LOGP(DMEAS, LOGL_NOTICE,
+ "%s measurement during state: %s, num_ul_meas=%d\n",
+ gsm_lchan_name(lchan), gsm_lchans_name(lchan->state),
+ lchan->meas.num_ul_meas);
}
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));
+ LOGP(DMEAS, LOGL_NOTICE,
+ "%s no space for uplink measurement, num_ul_meas=%d\n",
+ gsm_lchan_name(lchan), lchan->meas.num_ul_meas);
return -ENOSPC;
}