Browse code

cdp: use TIME_T_INT_FMT

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

Sebastian Kemper authored on 22/10/2021 23:29:25
Showing 1 changed files
... ...
@@ -121,10 +121,10 @@ peer* get_first_connected_route(cdp_session_t* cdp_session, routing_entry *r, in
121 121
 	}
122 122
 
123 123
 	least_recent_time = peers[0]->last_selected;
124
-	LM_DBG("peer [%.*s] was last used @ %ld\n", peers[0]->fqdn.len, peers[0]->fqdn.s, peers[0]->last_selected);
124
+	LM_DBG("peer [%.*s] was last used @ %" TIME_T_INT_FMT "\n", peers[0]->fqdn.len, peers[0]->fqdn.s, peers[0]->last_selected);
125 125
 	p = peers[0];
126 126
 	for (j = 1; j < peer_count; j++) {
127
-		LM_DBG("Peer [%.*s] was last used at [%ld]\n", peers[j]->fqdn.len, peers[j]->fqdn.s, peers[j]->last_selected);
127
+		LM_DBG("Peer [%.*s] was last used at [%" TIME_T_INT_FMT "]\n", peers[j]->fqdn.len, peers[j]->fqdn.s, peers[j]->last_selected);
128 128
 		if (peers[j]->last_selected < least_recent_time) {
129 129
 			least_recent_time = peers[j]->last_selected;
130 130
 			p = peers[j];