Reconciling DEBUG in Samba 3 and Samba 4: Debug classes?

Stefan (metze) Metzmacher metze at
Wed Sep 24 18:24:32 GMT 2008

Jelmer Vernooij schrieb:
> Samba 3 and Samba 4 both have different implementations of DEBUG. This
> is problematic when sharing object files because both DEBUG macros use
> different helper functions that are not provided by the other Samba. 
> It would be nice if we could get both Samba's to use the same DEBUG()
> implementation. The main difference between the current implementations
> is that Samba 3 supports debug classes. The advantage of this is that
> it's possible to have a different debug level set for different parts of
> the code, the disadvantage is that it makes the DEBUG() macro and the
> code it generates (horribly?) complex. 
> Are people using DEBUG classes? Should we keep them around? Or should we
> go with the simple DEBUG() from Samba 4?

I think we need to keep the debuf class feature, but maybe implemented
differently as it currently is. Maybe using a different macro when debug
classes should be used.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url :

More information about the samba-technical mailing list