From b1099a5b560db0145534ed6484eee27c7d93528a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 1 Nov 2010 20:55:04 +1100 Subject: s3-libsmbclient Add comments to describe the behaviour of DEBUG() This isn't quite what you would expect from this interface, but actually avoids some really nasty situations if you ever have more than one libsmbclient context in a process. In the real world, if you have asked for DEBUG() to stderr in one part of the code, you will want it globally, even in a different thread (which in the past would have rest everything to stdout again, at least while starting up). Andrew Bartlett --- source3/include/debug.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include') diff --git a/source3/include/debug.h b/source3/include/debug.h index 92fa6e6145..328bfb63b9 100644 --- a/source3/include/debug.h +++ b/source3/include/debug.h @@ -274,6 +274,7 @@ void check_log_size( void ); void dbgflush( void ); bool dbghdrclass(int level, int cls, const char *location, const char *func); bool dbghdr(int level, const char *location, const char *func); +bool debug_get_output_is_stderr(void); #endif -- cgit