Module: kamailio
Branch: master
Commit: 58b992011044bb3547e3aea15eb6712947daae0f
URL:
https://github.com/kamailio/kamailio/commit/58b992011044bb3547e3aea15eb6712…
Author: Sebastian Kemper <sebastian_ml(a)gmx.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-11-03T13:03:34+01:00
ims_usrloc_scscf: use TIME_T_FMT
Signed-off-by: Sebastian Kemper <sebastian_ml(a)gmx.net>
---
Modified: src/modules/ims_usrloc_scscf/impurecord.c
---
Diff:
https://github.com/kamailio/kamailio/commit/58b992011044bb3547e3aea15eb6712…
Patch:
https://github.com/kamailio/kamailio/commit/58b992011044bb3547e3aea15eb6712…
---
diff --git a/src/modules/ims_usrloc_scscf/impurecord.c
b/src/modules/ims_usrloc_scscf/impurecord.c
index e0ad1f7ef9..a1cfd19833 100644
--- a/src/modules/ims_usrloc_scscf/impurecord.c
+++ b/src/modules/ims_usrloc_scscf/impurecord.c
@@ -244,7 +244,7 @@ void print_impurecord(FILE* _f, impurecord_t* _r) {
header = 1;
}
fprintf(_f, "\t\twatcher uri: <%.*s> and presentity uri:
<%.*s>\n", subscriber->watcher_uri.len, subscriber->watcher_uri.s,
subscriber->presentity_uri.len, subscriber->presentity_uri.s);
- fprintf(_f, "\t\tExpires: %ld\n", subscriber->expires);
+ fprintf(_f, "\t\tExpires: %" TIME_T_FMT "\n",
TIME_T_CAST(subscriber->expires));
subscriber = subscriber->next;
}
@@ -405,8 +405,9 @@ static inline void process_impurecord(impurecord_t* _r) {
hascontacts = 1;
}
} else {
- LM_DBG("\t\tContact #%i - %.*s, Ref [%d] (expires in %ld seconds) (State:
%d)\n",
- k, ptr->c.len, ptr->c.s, ptr->ref_count, ptr->expires - act_time,
ptr->state);
+ LM_DBG("\t\tContact #%i - %.*s, Ref [%d] (expires in %" TIME_T_FMT "
seconds) (State: %d)\n",
+ k, ptr->c.len, ptr->c.s, ptr->ref_count,
+ TIME_T_CAST(ptr->expires - act_time), ptr->state);
mustdeleteimpu = 0;
hascontacts = 1;
}