summaryrefslogtreecommitdiff
path: root/sockets.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-30 21:23:44 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-30 21:23:44 +0100
commit6d183c02a50a42743c3031532f458ab5cea0685d (patch)
treed1463e8f53df26ec5f8c3c13a77880d11d3bc57f /sockets.c
parentef93f4d61f03faa0edd60f11c7790ad3b67b44d4 (diff)
Convert debugprint() from being to file/screen/disabled to always being to file with configurable verbosity.
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sockets.c b/sockets.c
index 7581779..f20b727 100644
--- a/sockets.c
+++ b/sockets.c
@@ -47,7 +47,7 @@ int createserversocket(char *host, char *port) {
}
inet_ntop(p->ai_family, get_in_addr((struct sockaddr *)p->ai_addr), s, sizeof s);
- debugprint("bouncer-server: connecting to %s\n", s);
+ debugprint(DEBUG_SOME, "bouncer-server: connecting to '%s'\n", s);
freeaddrinfo(servinfo); // all done with this structure
@@ -78,7 +78,7 @@ int createclientsocket(char *listenport) {
listener = socket(p->ai_family, p->ai_socktype, p->ai_protocol);
if (listener != -1) {
// success, got IPv6!
- debugprint("success, got IPv6! ai_family: %d\n", p->ai_family);
+ debugprint(DEBUG_FULL, "success, got IPv6! ai_family: '%d'\n", p->ai_family);
break;
}
}
@@ -91,7 +91,7 @@ int createclientsocket(char *listenport) {
listener = socket(p->ai_family, p->ai_socktype, p->ai_protocol);
if (listener != -1) {
// moderate success, got IPv4!
- debugprint("moderate success, got IPv4! ai_family: %d\n", p->ai_family);
+ debugprint(DEBUG_FULL, "moderate success, got IPv4! ai_family: '%d'\n", p->ai_family);
break;
}
}