From faa51484fb1ea5f57d00004ab3ed74aa03fdd892 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 1 Oct 2024 20:38:44 +0000 Subject: Add debug instruction Signed-off-by: Laurent Bercot --- src/dnsfunnel/dnsfunneld.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/dnsfunnel/dnsfunneld.c b/src/dnsfunnel/dnsfunneld.c index f57b265..6b830de 100644 --- a/src/dnsfunnel/dnsfunneld.c +++ b/src/dnsfunnel/dnsfunneld.c @@ -33,6 +33,8 @@ #include #include +#include + #include #include "dnsfunneld.h" @@ -303,6 +305,7 @@ int main (int argc, char const *const *argv) x[0].events = IOPAUSE_READ ; x[1].fd = 0 ; x[1].events = (cont ? IOPAUSE_READ : 0) | (dfanswer_pending() ? IOPAUSE_WRITE : 0) ; + LOLDEBUG("loop: cont = %d, x[1].events = %u, inflight = %zu, pendingbytes = %zu", cont, (unsigned int)x[1].events, inflight, dfanswer_pending()) ; if (!x[1].events && !inflight) break ; while (i != sentinel) -- cgit v1.3.1