summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/util/debug.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2010-07-19 19:29:09 +0930
committerRusty Russell <rusty@rustcorp.com.au>2010-08-18 11:46:32 +0930
commit9fbb191b78a0cef008166fbc2bdad454735b8e1c (patch)
treec016891d655a2313e5421b1d44e06e297b695259 /ctdb/lib/util/debug.h
parent1a009aff73cd3fa0e9653c35581283bd4de614e3 (diff)
downloadsamba-9fbb191b78a0cef008166fbc2bdad454735b8e1c.tar.gz
samba-9fbb191b78a0cef008166fbc2bdad454735b8e1c.tar.xz
samba-9fbb191b78a0cef008166fbc2bdad454735b8e1c.zip
logging: give a unique logging name to each forked child.
This means we can distinguish which child is logging, esp. via syslog where we have no pid. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 68b3761a0874429b90731741f0531f76dcfbb081)
Diffstat (limited to 'ctdb/lib/util/debug.h')
-rw-r--r--ctdb/lib/util/debug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/lib/util/debug.h b/ctdb/lib/util/debug.h
index 11ecb19786..27490a3dbf 100644
--- a/ctdb/lib/util/debug.h
+++ b/ctdb/lib/util/debug.h
@@ -18,6 +18,7 @@
*/
void (*do_debug_v)(const char *, va_list ap);
+const char *debug_extra;
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);