Skip to content

Commit

Permalink
Add missing arguments to some debug messages. They could potentially …
Browse files Browse the repository at this point in the history
…cause crashes just when you need them to work properly, sigh!
  • Loading branch information
mikebrady committed Sep 25, 2023
1 parent d236cfc commit c4975d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c4975d5

Please sign in to comment.