From fa4ff95ce2650c3f1c16956e75662e5b8c70138c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 12 Sep 2007 10:54:57 +0200 Subject: [PATCH] Removed some legacy calls to DEBUG(). Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- 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 7ce7aad9..0801fe73 100644 --- a/src/dns.c +++ b/src/dns.c @@ -239,13 +239,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 23daacdb..6905fb2c 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -397,7 +397,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 215abdd0..734403e8 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -351,12 +351,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; -- 2.11.0