summaryrefslogtreecommitdiffstats
path: root/net/asterisk/patches/180-app_queue_time_t.patch
blob: fc8c69f6c8eb2158934da46ed01ed9c206b00e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4759,8 +4759,12 @@ static int is_longest_waiting_caller(str
 					 * will be unused until the first caller is picked up.
 					 */
 					if (ch->start < caller->start && !ch->pending) {
-						ast_debug(1, "Queue %s has a call at position %i that's been waiting longer (%li vs %li)\n",
-								  q->name, ch->pos, ch->start, caller->start);
+						char time1[AST_TIME_T_LEN];
+						char time2[AST_TIME_T_LEN];
+						ast_time_t_to_string(ch->start, time1, sizeof(time1));
+						ast_time_t_to_string(caller->start, time2, sizeof(time2));
+						ast_debug(1, "Queue %s has a call at position %i that's been waiting longer (%s vs %s)\n",
+								  q->name, ch->pos, time1, time2);
 						is_longest_waiting = 0;
 						break;
 					}