From: Arran Cudbard-Bell Date: Mon, 5 May 2025 22:21:19 +0000 (-0600) Subject: Fix typos in timer.c that caused it not to build WITH_EVENT_DEBUG X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4de3905abecc045183f7a6927e5ad59c8f028c6;p=thirdparty%2Ffreeradius-server.git Fix typos in timer.c that caused it not to build WITH_EVENT_DEBUG --- diff --git a/src/lib/util/timer.c b/src/lib/util/timer.c index 56ccfcd4825..e489e718653 100644 --- a/src/lib/util/timer.c +++ b/src/lib/util/timer.c @@ -115,7 +115,7 @@ FR_DLIST_FUNCS(timer, fr_timer_t, entry) fr_assert_msg(!(_ev)->parent || (*(_ev)->parent == ev), \ "Event %p, allocd %s[%d], parent field points to %p", (_ev), (_ev)->file, (_ev)->line, *(_ev)->parent); -#define TIMER_UCTX_TO_TIME(_tl, _x) (fr_time_t *)(((uintptr_t) (_x)) + (_tl)->shared.time_offset); +#define TIMER_UCTX_TO_TIME(_tl, _x) ((fr_time_t *)(((uintptr_t) (_x)) + (_tl)->shared.time_offset)) /** Specialisation function to insert a timer * @@ -1537,7 +1537,7 @@ void fr_timer_report(fr_timer_list_t *tl, fr_time_t now, void *uctx) void fr_timer_dump(fr_timer_list_t *tl) { fr_lst_iter_t iter; - fr_timer_t *ev; + fr_timer_t *ev; fr_time_t now = tl->pub.time(); /* Get the current time */ #define TIMER_DUMP(_ev) \ @@ -1574,8 +1574,8 @@ void fr_timer_dump(fr_timer_list_t *tl) EVENT_DEBUG("Dumping shared timer list"); fr_rb_inorder_foreach(tl->shared.rb, void, uctx) { - EVENT_DEBUG("time %" PRIu64" uctx %p", fr_time_unwrap(*TIMER_UCTX_TO_TIME(tl, uctx))); - } + EVENT_DEBUG("time %" PRIu64" uctx %p", fr_time_unwrap(*TIMER_UCTX_TO_TIME(tl, uctx)), uctx); + }} break; } }