path: root/src/tbf.h
diff options
authorMax <msuraev@sysmocom.de>2017-12-01 17:40:20 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-05 18:47:22 +0000
commitcea806e5b9bf7f6c4bdd15520c5914f320fe92f0 (patch)
treefed34608257183d311f8fc96f629a46045c436f4 /src/tbf.h
parentb4d368b5769e2808cddd15917ef3f06583e920df (diff)
TBF: expand timer logging
* log timer values * log start/stop cause * update test output as necessary This simplifies debugging issues with TBF timers. Related: OS#2407 Change-Id: Ib8e537416af9bec5d447356286f44e9e8bbf1b7a
Diffstat (limited to 'src/tbf.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tbf.h b/src/tbf.h
index e9d8df8..80249df 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -174,7 +174,7 @@ struct gprs_rlcmac_tbf {
int update();
void handle_timeout();
- void stop_timer();
+ void stop_timer(const char *reason);
void stop_t3191();
int establish_dl_tbf_on_pacch();
@@ -330,7 +330,7 @@ struct gprs_rlcmac_ul_tbf *handle_tbf_reject(struct gprs_rlcmac_bts *bts,
int tbf_assign_control_ts(struct gprs_rlcmac_tbf *tbf);
void tbf_timer_start(struct gprs_rlcmac_tbf *tbf, unsigned int T,
- unsigned int seconds, unsigned int microseconds);
+ unsigned int seconds, unsigned int microseconds, const char *reason);
inline bool gprs_rlcmac_tbf::state_is(enum gprs_rlcmac_tbf_state rhs) const