From e455d009436b8ac5f3c879c410d0901a77769820 Mon Sep 17 00:00:00 2001 From: Bogdan-Andrei Iancu Date: Mon, 3 Jul 2023 16:27:34 +0300 Subject: [PATCH] Small code beautification Related to 1d83a0c --- timer.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/timer.c b/timer.c index 5fc7985e469..ddae89ae3c8 100644 --- a/timer.c +++ b/timer.c @@ -990,14 +990,17 @@ The timer task was scheduled before a drift adjustement _ijiffies = *ijiffies; /* if we read from the queue after or while a drift was detecte * -> take the drift value into consideration too */ - _ijiffies_extra = (t->trigger_time > *ijiffies_drift_base) ? 0 : *ijiffies_drift; + _ijiffies_extra = + (t->trigger_time > *ijiffies_drift_base) ? 0 : *ijiffies_drift; /* run the handler */ if (t->flags&TIMER_FLAG_IS_UTIMER) { if (t->trigger_time<(_ijiffies-_ijiffies_extra-ITIMER_TICK) ) { - LM_WARN("utimer job <%s> has a %lld us delay in execution: trigger_time=%lld ijiffies=%lld ijiffies_extra=%lld\n", - t->label, _ijiffies-t->trigger_time-_ijiffies_extra, t->trigger_time, _ijiffies, _ijiffies_extra); + LM_WARN("utimer job <%s> has a %lld us delay in execution: " + "trigger_time=%lld ijiffies=%lld ijiffies_extra=%lld\n", + t->label, _ijiffies-t->trigger_time-_ijiffies_extra, + t->trigger_time, _ijiffies, _ijiffies_extra); } t->u.utimer_f( t->time , t->t_param); @@ -1006,8 +1009,10 @@ The timer task was scheduled before a drift adjustement } else { if (t->trigger_time<(_ijiffies-_ijiffies_extra-ITIMER_TICK) ) { - LM_WARN("timer job <%s> has a %lld us delay in execution trigger_time=%lld ijiffies=%lld ijiffies_extra=%lld\n", - t->label, _ijiffies-t->trigger_time-_ijiffies_extra, t->trigger_time, _ijiffies, _ijiffies_extra); + LM_WARN("timer job <%s> has a %lld us delay in execution: " + "trigger_time=%lld ijiffies=%lld ijiffies_extra=%lld\n", + t->label, _ijiffies-t->trigger_time-_ijiffies_extra, + t->trigger_time, _ijiffies, _ijiffies_extra); } t->u.timer_f( (unsigned int)t->time , t->t_param);