diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2020-04-28 22:32:03 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-05-06 19:39:00 +0000 |
commit | ee320d5b36378bcfebde055323a4d9ec46c354cb (patch) | |
tree | 978b6950531d941e3f9e1ab01a02d29d7d7ce24c | |
parent | 40fb4b7614cbe8c25b9712a44e97c76bca51fba5 (diff) |
measurement: make measurements more debugable
A debug line is printed whenever a measurement is added and it also
displays if the added measurement is a sub frame or not, lets display
all the other properties too, especially inv_rssi would help a lot as it
shows us the rssi values which are reported by the lower layers
Related: OS#2978
Change-Id: I0299b75e99661e8dd22ad6604a897db4533c3b2b
-rw-r--r-- | src/common/measurement.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/measurement.c b/src/common/measurement.c index c5cbbb04..3ee9ffe7 100644 --- a/src/common/measurement.c +++ b/src/common/measurement.c @@ -341,8 +341,10 @@ int lchan_new_ul_meas(struct gsm_lchan *lchan, struct bts_ul_meas *ulm, uint32_t if (!ulm->is_sub) ulm->is_sub = ts45008_83_is_sub(lchan, fn); - DEBUGPFN(DMEAS, fn, "%s adding measurement (is_sub=%u), num_ul_meas=%d, fn_mod=%u\n", - gsm_lchan_name(lchan), ulm->is_sub, lchan->meas.num_ul_meas, fn_mod); + DEBUGPFN(DMEAS, fn, "%s adding measurement (ber10k=%u, ta_offs=%d, ci=%0.2f, is_sub=%u, rssi=-%u), num_ul_meas=%d, fn_mod=%u\n", + gsm_lchan_name(lchan), ulm->ber10k, ulm->ta_offs_256bits, + ulm->c_i, ulm->is_sub, ulm->inv_rssi, lchan->meas.num_ul_meas, + fn_mod); memcpy(&lchan->meas.uplink[lchan->meas.num_ul_meas++], ulm, sizeof(*ulm)); |