Browse code

ims_usrloc_scscf: use TIME_T_INT_FMT

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

Sebastian Kemper authored on 22/10/2021 23:47:10
Showing 1 changed files
... ...
@@ -244,7 +244,7 @@ void print_impurecord(FILE* _f, impurecord_t* _r) {
244 244
             header = 1;
245 245
         }
246 246
         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);
247
-        fprintf(_f, "\t\tExpires: %ld\n", subscriber->expires);
247
+        fprintf(_f, "\t\tExpires: %" TIME_T_INT_FMT "\n", subscriber->expires);
248 248
         subscriber = subscriber->next;
249 249
     }
250 250
 
... ...
@@ -405,7 +405,7 @@ static inline void process_impurecord(impurecord_t* _r) {
405 405
 				hascontacts = 1;
406 406
 			}
407 407
 		} else {
408
-			LM_DBG("\t\tContact #%i - %.*s, Ref [%d] (expires in %ld seconds) (State: %d)\n", 
408
+			LM_DBG("\t\tContact #%i - %.*s, Ref [%d] (expires in %" TIME_T_INT_FMT " seconds) (State: %d)\n",
409 409
 					k, ptr->c.len, ptr->c.s, ptr->ref_count, ptr->expires - act_time, ptr->state);
410 410
 			mustdeleteimpu = 0;
411 411
 			hascontacts = 1;