[PATCH] debug: Print header when logging to stdout
Volker.Lendecke at SerNet.DE
Thu Dec 11 23:09:14 MST 2014
On Thu, Dec 11, 2014 at 03:39:57PM -0700, Christof Schmitt wrote:
> > Well, with %s and __func__ it's not *that* bad anymore.
> If we end up adding %s __func__ to every call of DEBUG, then that part
> should be at least part of the DEBUG macro to avoid the duplicated code.
Well, it is *my* way to do it. I don't think we can enforce this upon
everybody, many people still like to add no function name or spell out
the function name. The latter is particularly prone to confusion if code
moves, that's why I'm using __func__.
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