mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
remove unneeded printf's/prevent stdout spam
This commit is contained in:
parent
07833b6731
commit
82c40b9c8a
|
@ -1083,7 +1083,7 @@ void toxav_handle_packet(RTPSession *_session, RTPMessage *_msg)
|
|||
av->audio_decode_write = (w + 1) % AUDIO_DECODE_QUEUE_SIZE;
|
||||
pthread_cond_signal(&av->decode_cond);
|
||||
} else {
|
||||
printf("dropped audio frame\n");
|
||||
LOGGER_DEBUG("Dropped audio frame\n");
|
||||
free(p);
|
||||
}
|
||||
|
||||
|
@ -1123,7 +1123,7 @@ void toxav_handle_packet(RTPSession *_session, RTPMessage *_msg)
|
|||
av->video_decode_write = (w + 1) % VIDEO_DECODE_QUEUE_SIZE;
|
||||
pthread_cond_signal(&av->decode_cond);
|
||||
} else {
|
||||
printf("dropped video frame\n");
|
||||
LOGGER_DEBUG("Dropped video frame\n");
|
||||
free(p);
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,6 @@ static void fetch_broadcast_info(uint16_t port)
|
|||
unsigned long ulOutBufLen = sizeof(pAdapterInfo);
|
||||
|
||||
if (pAdapterInfo == NULL) {
|
||||
printf("Error allocating memory for pAdapterInfo\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -55,7 +54,6 @@ static void fetch_broadcast_info(uint16_t port)
|
|||
pAdapterInfo = malloc(ulOutBufLen);
|
||||
|
||||
if (pAdapterInfo == NULL) {
|
||||
printf("Error allocating memory needed to call GetAdaptersinfo\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -78,7 +76,6 @@ static void fetch_broadcast_info(uint16_t port)
|
|||
ip_port->ip.ip4.uint32 = htonl(broadcast_ip);
|
||||
ip_port->port = port;
|
||||
broadcast_count++;
|
||||
printf("broadcast ip: %s\n", ip_ntoa(&ip_port->ip));
|
||||
|
||||
if (broadcast_count >= MAX_INTERFACES) {
|
||||
return;
|
||||
|
@ -88,10 +85,7 @@ static void fetch_broadcast_info(uint16_t port)
|
|||
|
||||
pAdapter = pAdapter->Next;
|
||||
}
|
||||
} else {
|
||||
printf("Fetching adapter info failed %i\n", ret);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#elif defined(__linux__)
|
||||
|
|
|
@ -460,7 +460,6 @@ TCP_Client_Connection *new_TCP_connection(IP_Port ip_port, const uint8_t *public
|
|||
sock_t sock = socket(ip_port.ip.family, SOCK_STREAM, IPPROTO_TCP);
|
||||
|
||||
if (!sock_valid(sock)) {
|
||||
printf("fail1 %u\n", sock);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user