Skip to content

Commit

Permalink
ims_icscf: use TIME_T_FMT
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
  • Loading branch information
micmac1 authored and miconda committed Nov 3, 2021
1 parent ee039a9 commit e4b280e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/ims_icscf/scscf_list.c
Expand Up @@ -586,15 +586,16 @@ void ims_icscf_timer_routine() {
sl = l->list;
while (sl) {

LM_DBG("INF: Score:[%4d] Start_time [%ld] S-CSCF: <%.*s> \n",
LM_DBG("INF: Score:[%4d] Start_time [%" TIME_T_FMT "] S-CSCF: <%.*s> \n",
sl->score,
sl->start_time,
TIME_T_CAST(sl->start_time),
sl->scscf_name.len, sl->scscf_name.s);
time_t now = time(0);
time_t time_elapsed = now - sl->start_time;
if (time_elapsed > scscf_entry_expiry) {

LM_DBG("Scscf entry expired: Time now %ld Start time %ld - elapsed %ld\n", now, sl->start_time, time_elapsed);
LM_DBG("Scscf entry expired: Time now %" TIME_T_FMT " Start time %" TIME_T_FMT " - elapsed %" TIME_T_FMT "\n",
TIME_T_CAST(now), TIME_T_CAST(sl->start_time), TIME_T_CAST(time_elapsed));
delete_list = 1; //if any of the entries in this list have expired remove the whole list!

}
Expand Down

0 comments on commit e4b280e

Please sign in to comment.