TBF: log timer invocation source
When troubleshooting TBF timers we're not only interested in timer
duration but also in the code which triggered it. Let's use LOGPSRC to
log it: wrap t_start() in a macro for convenience.
Change-Id: If5f883ae52c469e5158bad24da9904fdc455582f
Related: OS#2407
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index 33eb75b..84f6166 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -498,7 +498,7 @@
state_flags |= (1 << GPRS_RLCMAC_FLAG_PACCH);
/* start timer */
- t_start(T0, T_ASS_PACCH_SEC, 0, "assignment (PACCH)", true);
+ T_START(this, T0, T_ASS_PACCH_SEC, 0, "assignment (PACCH)", true);
} else {
LOGPTBFDL(this, LOGL_DEBUG, "Send dowlink assignment on PCH, no TBF exist (IMSI=%s)\n",
imsi());
@@ -854,7 +854,7 @@
m_tx_counter = 0;
/* start timer whenever we send the final block */
if (is_final)
- t_start(T3191, bts_data()->t3191, 0, "final block (DL-TBF)", true);
+ T_START(this, T3191, bts_data()->t3191, 0, "final block (DL-TBF)", true);
clear_poll_timeout_flag();
@@ -1116,7 +1116,7 @@
set_state(GPRS_RLCMAC_WAIT_RELEASE);
/* start T3193 */
- t_start(T3193, bts_data()->t3193_msec / 1000, (bts_data()->t3193_msec % 1000) * 1000,
+ T_START(this, T3193, bts_data()->t3193_msec / 1000, (bts_data()->t3193_msec % 1000) * 1000,
"release (DL-TBF)", true);
/* reset rlc states */