From 28a198f9c0a65a5158cf8d9c3e79dcf9fb1e4d93 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 21 Jun 2019 15:30:50 +0200 Subject: 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 --- src/gsm/lapd_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gsm') 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); } -- cgit v1.2.3