dexter has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-pcu/+/30865 )
Change subject: bts: log FN jump delta in bts_set_current_frame_number()
......................................................................
bts: log FN jump delta in bts_set_current_frame_number()
In case of an FN jump the expected value is logged. Lets also log the
delta between the expected and the current FN as it may give a better
clue what goes wrong
Change-Id: Ie361df30852570fe8a47347a42e962db869ccf82
---
M src/bts.cpp
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/65/30865/1
diff --git a/src/bts.cpp b/src/bts.cpp
index f2fb10e..c5a45f1 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -352,8 +352,8 @@
* and start of another frame (every 3 blocks). */
if (fn != bts->cur_fn && bts->cur_fn != FN_UNSET && fn !=
fn_next_block(bts->cur_fn)) {
LOGP(DRLCMAC, LOGL_NOTICE,
- "Detected FN jump! %u -> %u (expected %u)\n",
- bts->cur_fn, fn, fn_next_block(bts->cur_fn));
+ "Detected FN jump! %u -> %u (expected %u, delta %u)\n",
+ bts->cur_fn, fn, fn_next_block(bts->cur_fn),
GSM_TDMA_FN_DIFF(bts->cur_fn, fn));
}
bts->cur_fn = fn;
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-pcu/+/30865
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ie361df30852570fe8a47347a42e962db869ccf82
Gerrit-Change-Number: 30865
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange