CVS update: samba/source/smbd

Gerald (Jerry) Carter jerry at samba.org
Wed Jan 7 19:04:03 GMT 2004


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

On Wed, 7 Jan 2004, Jeremy Allison wrote:

> On Wed, Jan 07, 2004 at 09:16:20AM +0100, Volker Lendecke wrote:
> > 
> > What's the convention to be followed wrt function names in debug messages? I'm
> > currently not including them as they are already in the [ ] line above the
> > debug message.
> 
> That's not true for all compilers. I always add them, but that's just my
> convention.

I add them at lower debug levels. But sometimes not for higher ones
if there's a lower DEBUG that will box in the higher messages.  for 
example.

int foo () 
{
	DEBUG(5,("foo: enter...\n"));

	DEBUG(10,("some messages\n");

	DEBUG(5,("foo: exit\n"));

	return 0;
}





cheers, jery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE//FgjIR7qMdg1EfYRAsIqAKCcsVOtTl6mEq/VsuY+xD57RJDzeQCgvZfv
limg8zd9SwboPSsBjIHlOL8=
=dwh5
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list