Samba4 poor mans debug_ctx()
authorAmin Azez <azez@ufomechanic.net>
Fri, 1 Feb 2008 16:19:36 +0000 (16:19 +0000)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Feb 2008 17:09:49 +0000 (18:09 +0100)
commit9781967542b00c279563d435aec72dac1e8c7e9a
tree1c9705fb32f34a94ed6636b56baaebf05cd78f56
parentfdf9bcb163516f7d96675ae0dce2917afb8f86d3
Samba4 poor mans debug_ctx()

DEBUG(), DEBUGADD() and friends can now use debug_ctx() in the
formatting expressions again,
e.g.

DEBUG(5,("Guid failed to match: %s\n", GUID_string(debug_ctx(), r->guid)));

Sadly it's done with macros (again) but when we need to save the 8 or 16
bytes of object code per DEBUG() expression we can do it the Samba 3 way
with added thread-safety for Samba 4. That could save up to 200K,
allowing 12 bytes for each occurrance of DEBUG...

Signed-off-by: Amin Azez <azez@ufomechanic.net>
source/lib/util/debug.h