]> git.itanic.dy.fi Git - rrdd/commit
debug: Improve debugging macros
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Fri, 30 Nov 2012 16:34:54 +0000 (18:34 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Fri, 30 Nov 2012 16:46:08 +0000 (18:46 +0200)
commit1951cca3e1eded52d0406b376eecaeac6e563e3f
tree145103bab8a80b8da169e987c8792cd5f8569156
parenta180a18eebf452ca7605c400f4205a2831a2b6b2
debug: Improve debugging macros

Define different debug levels in one enum list instead of hard coding
with magic numbers.

Add two new debugging macros, one intended for warning messages and
another for pure debugging messages.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
debug.c
debug.h