ctdb-logging: Move variable debug_extra from debug.*
authorMartin Schwenke <martin@meltin.net>
Sat, 16 Aug 2014 06:17:02 +0000 (16:17 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 9 Sep 2014 23:36:15 +0000 (01:36 +0200)
debug_extra is CTDB-specific.  Moving it will help with the
transitions to Samba's updated debug.[ch].

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/ctdb_logging.c
ctdb/include/ctdb_logging.h
ctdb/lib/util/debug.c
ctdb/lib/util/debug.h

index 6dd1a385daabab5d8f4a4ad8ce393607636a705c..53901560e77de0be3ea432a2861f3a1c601b7188 100644 (file)
@@ -25,6 +25,7 @@
 
 int LogLevel = DEBUG_NOTICE;
 int this_log_level = 0;
+const char *debug_extra = "";
 
 int log_ringbuf_size;
 
index a3be3a84335966896586ba4ad03dc1267176429a..710864e8a1c874637b995dbeb3e690a15f07df98 100644 (file)
@@ -22,6 +22,7 @@
 
 extern int LogLevel;
 extern int this_log_level;
+extern const char *debug_extra;
 
 enum debug_level {
        DEBUG_EMERG   = -3,
index e9365d88f638f66fd909616436fd587a137530fd..40dda1a70a52c9a5bf00cb652d4432f40d5e2a65 100644 (file)
@@ -50,7 +50,6 @@ static void _do_debug_v(const char *format, va_list ap)
 
 /* default logging function */
 void (*do_debug_v)(const char *, va_list ap) = _do_debug_v;
-const char *debug_extra = "";
 
 void do_debug(const char *format, ...)
 {
index 3d2903a3c3eca623de6e90e8e1d892b077b87aa9..4902352e59dec62dc194a8562073aac4db7c1f23 100644 (file)
@@ -21,7 +21,6 @@
 #define UTIL_DEBUG_H
 
 extern void (*do_debug_v)(const char *, va_list ap);
-extern const char *debug_extra;
 extern void (*do_debug_add_v)(const char *, va_list ap);
 void log_ringbuffer(const char *format, ...);
 void do_debug(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);