diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-06-21 15:30:50 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-06-21 18:55:14 +0200 |
commit | 28a198f9c0a65a5158cf8d9c3e79dcf9fb1e4d93 (patch) | |
tree | 94435ddc09ec2845a04759f945a66d4f25c9a06f | |
parent | 18e019e896719231b1b19e8da4f2008a139c2ca6 (diff) |
gsm: lapd_core: Log timeout used upon start of T200
The timeout is calculated dynamically in t200_by_lchan() based on FN
advance value estimated by bts_get_avg_fn_advance(), so it's informative
to have the final value printed out.
Change-Id: Ib50a9c23de881c66c9218833703cc41101e06bfd
-rw-r--r-- | src/gsm/lapd_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c index 19dff4f0..a0f3c2b4 100644 --- a/src/gsm/lapd_core.c +++ b/src/gsm/lapd_core.c @@ -203,7 +203,8 @@ static void lapd_start_t200(struct lapd_datalink *dl) { if (osmo_timer_pending(&dl->t200)) return; - LOGP(DLLAPD, LOGL_INFO, "start T200 (dl=%p)\n", dl); + LOGP(DLLAPD, LOGL_INFO, "start T200 (dl=%p, timeout=%d.%06ds)\n", + dl, dl->t200_sec, dl->t200_usec); osmo_timer_schedule(&dl->t200, dl->t200_sec, dl->t200_usec); } |