From 4b2aed74ec467adeeb6259eea67f517d65b48325 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Thu, 11 Sep 2014 16:59:52 +0200 Subject: [PATCH] Replace fprintf(stderr,...) by LOGGER_*() in net_crypto --- toxcore/net_crypto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 172e439b..0b31d22f 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -31,6 +31,7 @@ #include "net_crypto.h" #include "util.h" #include "math.h" +#include "logger.h" static uint8_t crypt_connection_id_not_valid(const Net_Crypto *c, int crypt_connection_id) { @@ -838,7 +839,7 @@ static int64_t send_lossless_packet(Net_Crypto *c, int crypt_connection_id, cons dt1->time = temp_time; } else { conn->maximum_speed_reached = 1; - fprintf(stderr, "send_data_packet failed\n"); + LOGGER_ERROR("send_data_packet failed\n"); } return packet_num; @@ -1814,7 +1815,7 @@ static int tcp_oob_callback(void *object, const uint8_t *public_key, const uint8 source.ip.ip6.uint32[0] = location; if (data[0] != NET_PACKET_CRYPTO_HS) { - fprintf(stderr, "tcp snhappen %u\n", data[0]); + LOGGER_DEBUG("tcp snhappen %u\n", data[0]); return -1; }