More fixes due to tightening the checks on debug/die/inform/warn varadic arguments.

This commit is contained in:
Mike Brady
2025-12-30 16:56:30 +00:00
parent ceb1f804b6
commit 691d71f356
11 changed files with 35 additions and 35 deletions
+3 -3
View File
@@ -1761,7 +1761,7 @@ void *rtp_ap2_control_receiver(void *arg) {
char *packet_in_hex_cstring =
debug_malloc_hex_cstring(packet, nread); // remember to free this afterwards
debug(1,
"AP2 Control Receiver Packet of first byte 0x%02X, type 0x%02X length %d "
"AP2 Control Receiver Packet of first byte 0x%02X, type 0x%02X length %ld "
"received: "
"\"%s\".",
packet[0], packet[1], nread, packet_in_hex_cstring);
@@ -1789,7 +1789,7 @@ void *rtp_ap2_control_receiver(void *arg) {
conn->connection_number, errno);
}
} else {
debug(2, "Connection %d: AP2 Control Receiver -- malformed packet, %d bytes long.",
debug(2, "Connection %d: AP2 Control Receiver -- malformed packet, %ld bytes long.",
conn->connection_number, nread);
}
}
@@ -1804,7 +1804,7 @@ void rtp_realtime_audio_cleanup_handler(__attribute__((unused)) void *arg) {
debug(2, "Realtime Audio Receiver Cleanup Start.");
rtsp_conn_info *conn = (rtsp_conn_info *)arg;
close(conn->realtime_audio_socket);
debug(2, "Connection %d: closing realtime audio port %u", conn->local_realtime_audio_port);
debug(2, "Connection %d: closing realtime audio port %u", conn->connection_number, conn->local_realtime_audio_port);
conn->realtime_audio_socket = 0;
debug(2, "Realtime Audio Receiver Cleanup Done.");
}