projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f560c94
)
libcollectdclient/client.c: Let COLLECT_DEBUG decide about debugging.
author
Sebastian Harl
<sh@tokkee.org>
Tue, 9 Dec 2008 09:51:30 +0000
(10:51 +0100)
committer
Sebastian Harl
<sh@tokkee.org>
Tue, 9 Dec 2008 09:51:30 +0000
(10:51 +0100)
The file now includes config.h and enables debugging based on COLLECT_DEBUG
instead of some hard-coded value.
src/libcollectdclient/client.c
patch
|
blob
|
history
diff --git
a/src/libcollectdclient/client.c
b/src/libcollectdclient/client.c
index
98b7372
..
f2c0a1e
100644
(file)
--- 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 <stdlib.h>
#include <stdio.h>
#include <unistd.h>
@@
-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(...) /**/