aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-03-04 14:10:52 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-03-04 14:11:23 +0100
commit58fdc54a7fdf322fd2711ab018665ebba81ae7a0 (patch)
treee6e5fe80d9018cefa93c162717ef23d0438c6870
parent0057bd76fd578962d9d9acbec9a4404c6a929629 (diff)
tbf: Log N310* counter incrementsHEADmaster
-rw-r--r--src/tbf.cpp6
-rw-r--r--tests/tbf/TbfTest.err2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 5ca34f4..15d3fa1 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -414,9 +414,11 @@ bool gprs_rlcmac_tbf::n_inc(enum tbf_counters n)
LOGPTBF(this, LOGL_NOTICE, "%s exceeded MAX (%u)\n",
get_value_string(tbf_counters_names, n), chk);
return true;
+ } else {
+ LOGPTBF(this, LOGL_DEBUG, "%s %" PRIu8 " => %" PRIu8 " (< MAX %" PRIu8 ")\n",
+ get_value_string(tbf_counters_names, n), Narr[n] - 1, Narr[n], chk);
+ return false;
}
-
- return false;
}
void gprs_rlcmac_tbf::t_stop(enum tbf_timers t, const char *reason)
diff --git a/tests/tbf/TbfTest.err b/tests/tbf/TbfTest.err
index 685f9d0..5a8b5bb 100644
--- a/tests/tbf/TbfTest.err
+++ b/tests/tbf/TbfTest.err
@@ -1721,7 +1721,9 @@ Allocated a single block at SBFn=2654335 TRX=0 TS=7
Tx Immediate Assignment on AGCH: TRX=0 (ARFCN 0) TS=7 TA=7 TSC=0 TFI=-1 USF=7
Found first unallocated TRX=0 TFI=1
TBF(TFI=0 TLLI=0xf1223344 DIR=DL STATE=FINISHED) poll timeout for FN=2654292, TS=7 (curr FN 2654335)
+TBF(TFI=0 TLLI=0xf1223344 DIR=DL STATE=FINISHED) N3101 0 => 1 (< MAX 10)
TBF(TFI=0 TLLI=0xf1223344 DIR=DL STATE=FINISHED) Timeout for polling PACKET DOWNLINK ACK: |Assignment was on PACCH|No downlink ACK received yet|
+TBF(TFI=0 TLLI=0xf1223344 DIR=DL STATE=FINISHED) N3105 0 => 1 (< MAX 8)
PDCH(bts=0,trx=0,ts=7) +++++++++++++++++++++++++ RX : Uplink Control Block +++++++++++++++++++++++++
PDCH(bts=0,trx=0,ts=7) ------------------------- RX : Uplink Control Block -------------------------
Creating MS object, TLLI = 0xffffffff