From: Sebastian Harl Date: Tue, 9 Dec 2008 09:51:30 +0000 (+0100) Subject: libcollectdclient/client.c: Let COLLECT_DEBUG decide about debugging. X-Git-Tag: collectd-4.6.0~131 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d4510e41fe06d3b09f19f6ac7ef5d3be64fef2b;p=collectd.git libcollectdclient/client.c: Let COLLECT_DEBUG decide about debugging. The file now includes config.h and enables debugging based on COLLECT_DEBUG instead of some hard-coded value. --- diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 98b73723..f2c0a1e5 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -48,6 +48,10 @@ # define __attribute__(x) /**/ #endif +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include @@ -94,7 +98,7 @@ (c)->errbuf[sizeof ((c)->errbuf) - 1] = 0; \ } while (0) -#if 1 +#if COLLECT_DEBUG # define LCC_DEBUG(...) printf (__VA_ARGS__) #else # define LCC_DEBUG(...) /**/