]> git.itanic.dy.fi Git - rrdd/commit
debug: Rework debugging
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 24 Jun 2012 19:59:23 +0000 (22:59 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 24 Jun 2012 19:59:23 +0000 (22:59 +0300)
commitfddea07b40b6a05314c0a2d0c688aad63e42c848
treeec565e6de8b09be6f7479f02de382a3cb4142837
parent8228f272357bdd3eacc4d2f6753646cba871aeef
debug: Rework debugging

Instead of having a huge debug macro that gets expanded every time a
debug print is needed, separate the debugging facilities into
debu.c. This will reduce excess code duplication a lot.

A concept of debugging level is also introduced. This makes it
possible to add debug prints with different priority level and have
some of the prints to be silenced when user is not interested about
them.

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