summaryrefslogtreecommitdiffstats
path: root/ctdb/include/includes.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-04-17 17:59:39 +0200
committerVolker Lendecke <vl@samba.org>2007-04-17 17:59:39 +0200
commit3057f683f3fe1c3490d68db2a8fc936b4652ba91 (patch)
tree5ff135b944b4b335321ae3fc98a93d37cc051bd0 /ctdb/include/includes.h
parent98bb60e9d6fd68a5614f15517bd591e433956fe7 (diff)
downloadsamba-3057f683f3fe1c3490d68db2a8fc936b4652ba91.tar.gz
samba-3057f683f3fe1c3490d68db2a8fc936b4652ba91.tar.xz
samba-3057f683f3fe1c3490d68db2a8fc936b4652ba91.zip
Add timestamps to debug output.
(This used to be ctdb commit 197a02384bd2ca42dfff4c0357175424d2321e9c)
Diffstat (limited to 'ctdb/include/includes.h')
-rw-r--r--ctdb/include/includes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/include/includes.h b/ctdb/include/includes.h
index 5d3207820c..bffc66b358 100644
--- a/ctdb/include/includes.h
+++ b/ctdb/include/includes.h
@@ -6,6 +6,7 @@
#include "idtree.h"
#include "ctdb.h"
#include "lib/util/dlinklist.h"
+#include "lib/util/debug.h"
typedef bool BOOL;
@@ -14,7 +15,7 @@ typedef bool BOOL;
extern int LogLevel;
-#define DEBUG(lvl, x) if ((lvl) <= LogLevel) (printf x)
+#define DEBUG(lvl, x) if ((lvl) <= LogLevel) (do_debug x)
#define _PUBLIC_