From: Alan T. DeKok Date: Thu, 16 Sep 2021 00:27:56 +0000 (-0400) Subject: print out where the FD came from when doing EVENT_DEBUG X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f30c3a73ca26495707e74d19dff9d269849950cf;p=thirdparty%2Ffreeradius-server.git print out where the FD came from when doing EVENT_DEBUG which is enormously more useful than "did fd stuff." --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index ed8f87b2c5..42b2417ef0 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -2429,6 +2429,10 @@ void fr_event_service(fr_event_list_t *el) } service: +#ifndef NDEBUG + EVENT_DEBUG("Running event for fd %d, from %s[%d]", ef->fd, ef->file, ef->line); +#endif + /* * Service the event_fd events */