Add debug output for service_timeout
authorPhilipp Meier <philipp.meier@neratec.com>
Thu, 28 Sep 2017 07:09:39 +0000 (09:09 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 28 Sep 2017 07:26:16 +0000 (09:26 +0200)
Signed-off-by: Philipp Meier <philipp.meier@neratec.com>
service.c

index 0a9e25dbf77d356b528587ac355a67a0fc98a2db..97b6f911121c2cd2b22334a4705e66f5a23d723c 100644 (file)
--- 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;
 }