[collectd] [PATCH] Removed some legacy calls to DEBUG().

Sebastian Harl sh at tokkee.org
Wed Sep 12 10:54:57 CEST 2007


Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
 src/dns.c      |    2 --
 src/ntpd.c     |    1 -
 src/unixsock.c |    3 ++-
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/dns.c b/src/dns.c
index 2cbd0c3..e9996b9 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -229,13 +229,11 @@ static void *dns_child_loop (void *dummy)
 	memset (&fp, 0, sizeof (fp));
 	if (pcap_compile (pcap_obj, &fp, "udp port 53", 1, 0) < 0)
 	{
-		DEBUG ("pcap_compile failed");
 		ERROR ("dns plugin: pcap_compile failed");
 		return (NULL);
 	}
 	if (pcap_setfilter (pcap_obj, &fp) < 0)
 	{
-		DEBUG ("pcap_setfilter failed");
 		ERROR ("dns plugin: pcap_setfilter failed");
 		return (NULL);
 	}
diff --git a/src/ntpd.c b/src/ntpd.c
index fe3576c..63b037a 100644
--- a/src/ntpd.c
+++ b/src/ntpd.c
@@ -390,7 +390,6 @@ static int ntpd_connect (void)
 
 	if (sock_descr < 0)
 	{
-		DEBUG ("Unable to connect to server.");
 		ERROR ("ntpd plugin: Unable to connect to server.");
 	}
 
diff --git a/src/unixsock.c b/src/unixsock.c
index ddb3a52..6abbfef 100644
--- a/src/unixsock.c
+++ b/src/unixsock.c
@@ -352,12 +352,13 @@ static int us_open_socket (void)
 			sizeof (sa.sun_path) - 1);
 	/* unlink (sa.sun_path); */
 
+	DEBUG ("unixsock plugin: socket path = %s", sa.sun_path);
+
 	status = bind (sock_fd, (struct sockaddr *) &sa, sizeof (sa));
 	if (status != 0)
 	{
 		char errbuf[1024];
 		sstrerror (errno, errbuf, sizeof (errbuf));
-		DEBUG ("bind failed: %s; sa.sun_path = %s", errbuf, sa.sun_path);
 		ERROR ("unixsock plugin: bind failed: %s", errbuf);
 		close (sock_fd);
 		sock_fd = -1;
-- 
1.5.2.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20070912/682bccfe/attachment.pgp 


More information about the collectd mailing list