summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/timer.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-02-13 16:56:32 +0000
committerflorian <florian@openbsd.org>2020-02-13 16:56:32 +0000
commite2f3cf74cb2c2bd66580141d3e835600f931f03c (patch)
tree1fd3bd9fa340afc3e2bd5839abf74a4233a63274 /usr.bin/dig/lib/isc/timer.c
parentunifdef ISC_LIST_CHECKINIT (diff)
downloadwireguard-openbsd-e2f3cf74cb2c2bd66580141d3e835600f931f03c.tar.xz
wireguard-openbsd-e2f3cf74cb2c2bd66580141d3e835600f931f03c.zip
remove task and timer tracing
Diffstat (limited to 'usr.bin/dig/lib/isc/timer.c')
-rw-r--r--usr.bin/dig/lib/isc/timer.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.bin/dig/lib/isc/timer.c b/usr.bin/dig/lib/isc/timer.c
index afb0b13efa3..6bbf6c08d0a 100644
--- a/usr.bin/dig/lib/isc/timer.c
+++ b/usr.bin/dig/lib/isc/timer.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: timer.c,v 1.5 2020/02/13 12:03:51 jsg Exp $ */
+/* $Id: timer.c,v 1.6 2020/02/13 16:56:32 florian Exp $ */
/*! \file */
@@ -29,15 +29,6 @@
#include "timer_p.h"
-#ifdef ISC_TIMER_TRACE
-#define XTRACEID(s, t) fprintf(stderr, "%s %p\n", (s), (t))
-#define XTRACETIMER(s, t, d) fprintf(stderr, "%s %p %u.%09u\n", (s), (t), \
- (d).seconds, (d).nanoseconds)
-#else
-#define XTRACEID(s, t)
-#define XTRACETIMER(s, t, d)
-#endif /* ISC_TIMER_TRACE */
-
#define TIMER_MAGIC ISC_MAGIC('T', 'I', 'M', 'R')
#define VALID_TIMER(t) ISC_MAGIC_VALID(t, TIMER_MAGIC)
@@ -210,8 +201,6 @@ schedule(isc__timer_t *timer, isc_time_t *now, isc_boolean_t signal_ok) {
manager->nscheduled++;
}
- XTRACETIMER("schedule", timer, due);
-
/*
* If this timer is at the head of the queue, we need to ensure
* that we won't miss it if it has a more recent due time than
@@ -566,14 +555,12 @@ dispatch(isc__timermgr_t *manager, isc_time_t *now) {
* Idle timer has been touched;
* reschedule.
*/
- XTRACEID("idle reschedule", timer);
post_event = ISC_FALSE;
need_schedule = ISC_TRUE;
}
}
if (post_event) {
- XTRACEID("posting", timer);
/*
* XXX We could preallocate this event.
*/