From ad672595356f034d81990c307f4e19c619198076 Mon Sep 17 00:00:00 2001 From: mannol Date: Sat, 10 Jan 2015 23:09:51 +0100 Subject: Logger fix --- toxcore/network.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toxcore/network.c') diff --git a/toxcore/network.c b/toxcore/network.c index 6e631cac..deccbb63 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -264,15 +264,15 @@ uint64_t current_time_monotonic(void) #define loglogdata(__message__, __buffer__, __buflen__, __ip_port__, __res__) \ (__ip_port__) .ip; \ if (__res__ < 0) /* Windows doesn't necessarily know %zu */ \ - LOGGER_INFO("[%2u] %s %3hu%c %s:%hu (%u: %s) | %04x%04x", \ + LOGGER_TRACE("[%2u] %s %3hu%c %s:%hu (%u: %s) | %04x%04x", \ __buffer__[0], __message__, (__buflen__ < 999 ? (uint16_t)__buflen__ : 999), 'E', \ ip_ntoa(&((__ip_port__).ip)), ntohs((__ip_port__).port), errno, strerror(errno), data_0(__buflen__, __buffer__), data_1(__buflen__, __buffer__)); \ else if ((__res__ > 0) && ((size_t)__res__ <= __buflen__)) \ - LOGGER_INFO("[%2u] %s %3zu%c %s:%hu (%u: %s) | %04x%04x", \ + LOGGER_TRACE("[%2u] %s %3zu%c %s:%hu (%u: %s) | %04x%04x", \ __buffer__[0], __message__, (__res__ < 999 ? (size_t)__res__ : 999), ((size_t)__res__ < __buflen__ ? '<' : '='), \ ip_ntoa(&((__ip_port__).ip)), ntohs((__ip_port__).port), 0, "OK", data_0(__buflen__, __buffer__), data_1(__buflen__, __buffer__)); \ else /* empty or overwrite */ \ - LOGGER_INFO("[%2u] %s %zu%c%zu %s:%hu (%u: %s) | %04x%04x", \ + LOGGER_TRACE("[%2u] %s %zu%c%zu %s:%hu (%u: %s) | %04x%04x", \ __buffer__[0], __message__, (size_t)__res__, (!__res__ ? '!' : '>'), __buflen__, \ ip_ntoa(&((__ip_port__).ip)), ntohs((__ip_port__).port), 0, "OK", data_0(__buflen__, __buffer__), data_1(__buflen__, __buffer__)); -- cgit v1.2.3