s3-libsmbclient Add comments to describe the behaviour of DEBUG()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 1 Nov 2010 09:55:04 +0000 (20:55 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 2 Nov 2010 04:36:04 +0000 (04:36 +0000)
commitb1099a5b560db0145534ed6484eee27c7d93528a
treebd775f2d2fe46eb61b0d4306c9f4736f6996c189
parente16c9904c60bd7531ada1acd2396e56ee1213dea
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
source3/lib/debug.c
source3/libsmb/libsmb_context.c
source3/libsmb/libsmb_setget.c