author | Sebastian Harl <sh@tokkee.org> | |
Sun, 28 Oct 2007 08:57:17 +0000 (09:57 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 28 Oct 2007 10:47:10 +0000 (11:47 +0100) | ||
commit | b0c3db2d98b74ec6fef30973500cdcab30a890f6 | |
tree | 6508baa0477e148d233cab8cf06c9f5722a3cec4 | tree | snapshot |
parent | 5cb5b41bdd8fc01f2bd808c5eb75b8f4095a8520 | commit | diff |
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>
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 | diff | blob | history | |
src/hddtemp.c | diff | blob | history | |
src/mbmon.c | diff | blob | history | |
src/ntpd.c | diff | blob | history | |
src/plugin.h | diff | blob | history |