More fixes due to tightening the checks on debug/die/inform/warn varadic arguments.
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user