[RFC PATCHES] Macros for debug levels

Volker Lendecke Volker.Lendecke at SerNet.DE
Sun Jun 7 11:24:02 MDT 2015


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!

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba-technical mailing list