[RFC PATCHES] Macros for debug levels

Michael Adam obnox at samba.org
Mon Jun 8 01:06:58 MDT 2015


On 2015-06-07 at 19:24 +0200, Volker Lendecke wrote:
> On Fri, Jun 05, 2015 at 03:35:38PM -0700, Christof Schmitt wrote:
> > Looking through the code, it is often not clear what severity or log
> > level a certain message should have. Severe errors use level 0, and
> > debug messages usually have level 10.
> > 
> > The attached patches introduce macros for emitting messages that match a
> > subset of the syslog priorities. The idea would be that going forward,
> > any change to a debug message could also switch to one of these macros.
> > Over time, that should give a more consistent usage of debug levels.
> > 
> > A nice cleanup would also be the removal of one pair of parenthesis.
> > 
> > What do others think? Would this be worthwhile?
> 
> I like that!

I also like it very much!

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150608/dc934e10/attachment.pgp>


More information about the samba-technical mailing list