summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoffer Sterner <cs@sterner.cc>2015-03-07 22:39:27 +0100
committerChristoffer Sterner <cs@sterner.cc>2015-03-07 22:39:27 +0100
commit10ca292f24725d07fc18c7c07a0afcc79f9a73ec (patch)
treebf3f21664af61db6140840fc7cea913621a46c32
parent2af1608059da9dfbf91fd2d25c8367b426ca182a (diff)
Change fprintf debug into LOGGER_DEBUG for consistency
-rw-r--r--toxcore/network.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 4558f6ff..c184bf07 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -654,10 +654,9 @@ Networking_Core *new_networking_ex(IP ip, uint16_t port_from, uint16_t port_to)
654 *portptr = htons(port_to_try); 654 *portptr = htons(port_to_try);
655 } 655 }
656 656
657#ifdef DEBUG 657 LOGGER_DEBUG("Failed to bind socket: %u, %s IP: %s port_from: %u port_to: %u", errno, strerror(errno),
658 fprintf(stderr, "Failed to bind socket: %u, %s IP: %s port_from: %u port_to: %u\n", errno, strerror(errno),
659 ip_ntoa(&ip), port_from, port_to); 658 ip_ntoa(&ip), port_from, port_to);
660#endif 659
661 kill_networking(temp); 660 kill_networking(temp);
662 return NULL; 661 return NULL;
663} 662}