aboutsummaryrefslogtreecommitdiff
path: root/sockutils.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-04-01 20:12:59 -0700
committerGuy Harris <guy@alum.mit.edu>2018-04-01 20:12:59 -0700
commite6491164d8e72989a74ec4ff4e6535fb15f601f8 (patch)
tree00840f8894bab78a0a221f297af787290925862a /sockutils.c
parentb93d911845e18343d1276b134cafd9202ed0ab9f (diff)
Rename SOCK_MESSAGE() to SOCK_DEBUG_MESSAGE().
This emphasizes that it's for *debugging* messages, not for errors sent to the peer or logged to a daemon log file. Any message that would be useful if printed/logged in a production environment should *not* be reported with SOCK_DEBUG_MESSAGE().
Diffstat (limited to 'sockutils.c')
-rw-r--r--sockutils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sockutils.c b/sockutils.c
index 420fd5bc..079c49db 100644
--- a/sockutils.c
+++ b/sockutils.c
@@ -848,7 +848,7 @@ int sock_recv(SOCKET sock, void *buffer, size_t size, int flags,
if (size == 0)
{
- SOCK_MESSAGE("I have been requested to read zero bytes");
+ SOCK_DEBUG_MESSAGE("I have been requested to read zero bytes");
return 0;
}
if (size > INT_MAX)
@@ -939,7 +939,7 @@ int sock_recv_dgram(SOCKET sock, void *buffer, size_t size,
if (size == 0)
{
- SOCK_MESSAGE("I have been requested to read zero bytes");
+ SOCK_DEBUG_MESSAGE("I have been requested to read zero bytes");
return 0;
}
if (size > INT_MAX)
@@ -1095,7 +1095,7 @@ int sock_discard(SOCKET sock, int size, char *errbuf, int errbuflen)
return -1;
}
- SOCK_MESSAGE("I'm currently discarding data\n");
+ SOCK_DEBUG_MESSAGE("I'm currently discarding data\n");
return 0;
}
@@ -1170,7 +1170,7 @@ int sock_check_hostlist(char *hostlist, const char *sep, struct sockaddr_storage
if (errbuf)
pcap_snprintf(errbuf, errbuflen, "getaddrinfo() %s", gai_strerror(retval));
- SOCK_MESSAGE(errbuf);
+ SOCK_DEBUG_MESSAGE(errbuf);
/* Get next token */
token = pcap_strtok_r(NULL, sep, &lasts);