Browse code

ims_registrar_pcscf: use TIME_T_INT_FMT

Note: "%i" is used instead of "%d". But in the context of printf etc.
there is no difference, so this commit replaces "%i" with "%d".

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

Sebastian Kemper authored on 22/10/2021 23:42:51
Showing 2 changed files
... ...
@@ -209,7 +209,7 @@ int process_contact(udomain_t * _d, int expires, str contact_uri, int contact_st
209 209
             /*TODO_LATEST - put this back */
210 210
         } else {//state is active
211 211
             //update this contact
212
-            LM_DBG("This contact: <%.*s> is in state active and is in usrloc so just updating - old expires: %li, new expires: %i which is in %i seconds\n", contact_uri.len, contact_uri.s,
212
+            LM_DBG("This contact: <%.*s> is in state active and is in usrloc so just updating - old expires: %" TIME_T_INT_FMT ", new expires: %i which is in %i seconds\n", contact_uri.len, contact_uri.s,
213 213
                     pcontact->expires,
214 214
                     expires,
215 215
                     expires - local_time_now);
... ...
@@ -223,7 +223,7 @@ static inline int update_contacts(struct sip_msg *req,struct sip_msg *rpl, udoma
223 223
 						}
224 224
                                                 //TODO_LATEST replace above
225 225
 					} else { //update contact
226
-						LM_DBG("Updating contact: <%.*s>, old expires: %li, new expires: %i which is in %i seconds\n", c->uri.len, c->uri.s,
226
+						LM_DBG("Updating contact: <%.*s>, old expires: %" TIME_T_INT_FMT ", new expires: %i which is in %i seconds\n", c->uri.len, c->uri.s,
227 227
 								pcontact->expires-local_time_now,
228 228
 								expires,
229 229
 								expires-local_time_now);