plugin.h: Make DEBUG() a noop when compiling without debugging support.
authorSebastian Harl <sh@tokkee.org>
Sun, 28 Oct 2007 08:57:17 +0000 (09:57 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Sun, 28 Oct 2007 10:47:10 +0000 (11:47 +0100)
commitb0c3db2d98b74ec6fef30973500cdcab30a890f6
tree6508baa0477e148d233cab8cf06c9f5722a3cec4
parent5cb5b41bdd8fc01f2bd808c5eb75b8f4095a8520
plugin.h: Make DEBUG() a noop when compiling without debugging support.

This saves a couple of useless calls to plugin_log() which the compiler
does not detect and remove itself.

A couple of DEBUG()'s in the apcups, hddtemp, mbmon and ntpd plugins have
been upgraded to INFO()'s. All of them provide error messages of failed
system / libc calls which should be available to the user somehow.
Besides, they use a local string buffer which generates an "unused
variable" warning if DEBUG() expands to a noop.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/apcups.c
src/hddtemp.c
src/mbmon.c
src/ntpd.c
src/plugin.h