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

Gerald (Jerry) Carter jerry at samba.org
Wed Sep 24 18:57:57 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jelmer Vernooij wrote:
> 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'd be willing to drpo the classes as I don't think they are that
helpful at the moment and not really honored by developers.  Interaction
between various classes (maybe you need idmap and winbindd debug logs)
means that it is easy to get a sparse debug log that contains
insufficient information.





cheers, jerry
- --
=====================================================================
Samba                                    ------- http://www.samba.org
Likewise Software          ---------  http://www.likewisesoftware.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2o05IR7qMdg1EfYRAthfAKCn5QHoF2VSgRuWuMj+mJxZQPQOJACg2R5k
5AHzRkRhv/5d4qLfgsKLYqo=
=JL6t
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list