From b84fdacb6e9f8f9d4b588db0ef191eba9bd99af9 Mon Sep 17 00:00:00 2001 From: Philipp Meier Date: Thu, 28 Sep 2017 09:09:39 +0200 Subject: [PATCH] Add debug output for service_timeout Signed-off-by: Philipp Meier --- service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service.c b/service.c index 0a9e25d..97b6f91 100644 --- a/service.c +++ b/service.c @@ -121,8 +121,10 @@ service_timeout(struct service *s) { time_t t = monotonic_time(); - if (t - s->t <= TOUT_LOOKUP) + if (t - s->t <= TOUT_LOOKUP) { + DBG(2, "t=%lu, s->t=%lu, t - s->t = %lu\n", t, s->t, t - s->t); return 0; + } return t; } -- 2.25.1