From c4975d5c3b959a0cd3b3c159b41bded88afd0faa Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 25 Sep 2023 09:37:47 +0100 Subject: [PATCH] Add missing arguments to some debug messages. They could potentially cause crashes just when you need them to work properly, sigh! --- rtsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtsp.c b/rtsp.c index e81e398ae..3c193d3dd 100644 --- a/rtsp.c +++ b/rtsp.c @@ -771,7 +771,7 @@ rtsp_message *msg_init(void) { // no thread cancellation points here int rc = pthread_mutex_lock(&reference_counter_lock); if (rc) - debug(1, "Error %d locking reference counter lock"); + debug(1, "Error %d locking reference counter lock", rc); rtsp_message *msg = malloc(sizeof(rtsp_message)); if (msg) { @@ -786,7 +786,7 @@ rtsp_message *msg_init(void) { rc = pthread_mutex_unlock(&reference_counter_lock); if (rc) - debug(1, "Error %d unlocking reference counter lock"); + debug(1, "Error %d unlocking reference counter lock", rc); return msg; } @@ -5221,7 +5221,7 @@ static void *rtsp_conversation_thread_func(void *pconn) { int i; for (i = 0; i < nconns; i++) { if ((conns[i] != NULL) && (conns[i]->connection_number == 0)) { - debug(1, "conns[%d] at %" PRIxPTR " has a Connection Number of 0!", conns[i]); + debug(1, "conns[%d] at %" PRIxPTR " has a Connection Number of 0!", i, conns[i]); } } debug_mutex_unlock(&conns_lock, 3);