From: Philipp Meier Date: Thu, 28 Sep 2017 07:09:39 +0000 (+0200) Subject: Add debug output for service_timeout X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b84fdacb6e9f8f9d4b588db0ef191eba9bd99af9;p=oweals%2Fmdnsd.git Add debug output for service_timeout Signed-off-by: Philipp Meier --- 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; }