From: Florian Forster Date: Thu, 19 Mar 2009 08:40:29 +0000 (+0100) Subject: network plugin: Improve a debugging message. X-Git-Tag: collectd-4.5.4~29 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fb2742be4ab8868f67f563e0381ea98f1f0a8d87;p=collectd.git network plugin: Improve a debugging message. --- diff --git a/src/network.c b/src/network.c index 9e391bb2..c996b078 100644 --- a/src/network.c +++ b/src/network.c @@ -869,11 +869,12 @@ static void free_sockent (sockent_t *se) */ static int network_set_ttl (const sockent_t *se, const struct addrinfo *ai) { + DEBUG ("network plugin: network_set_ttl: network_config_ttl = %i;", + network_config_ttl); + if ((network_config_ttl < 1) || (network_config_ttl > 255)) return (-1); - DEBUG ("ttl = %i", network_config_ttl); - if (ai->ai_family == AF_INET) { struct sockaddr_in *addr = (struct sockaddr_in *) ai->ai_addr;