[sr-dev] git:master:e4b280ec: ims_icscf: use TIME_T_FMT

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 3 13:03:43 CET 2021


Module: kamailio
Branch: master
Commit: e4b280ec340135199e1c98e2e8b63042538c9aaa
URL: https://github.com/kamailio/kamailio/commit/e4b280ec340135199e1c98e2e8b63042538c9aaa

Author: Sebastian Kemper <sebastian_ml at gmx.net>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-11-03T13:03:34+01:00

ims_icscf: use TIME_T_FMT

Signed-off-by: Sebastian Kemper <sebastian_ml at gmx.net>

---

Modified: src/modules/ims_icscf/scscf_list.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e4b280ec340135199e1c98e2e8b63042538c9aaa.diff
Patch: https://github.com/kamailio/kamailio/commit/e4b280ec340135199e1c98e2e8b63042538c9aaa.patch

---

diff --git a/src/modules/ims_icscf/scscf_list.c b/src/modules/ims_icscf/scscf_list.c
index fae8dc3201..1bb7cb5f8c 100644
--- a/src/modules/ims_icscf/scscf_list.c
+++ b/src/modules/ims_icscf/scscf_list.c
@@ -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!
 
                 }




More information about the sr-dev mailing list