debug prints - new suggested patch

Jeremy Allison jra at samba.org
Fri Aug 10 17:08:10 MDT 2012


On Wed, Aug 08, 2012 at 12:26:53PM -0700, Herb Lewis wrote:
> OK, I added Andrew's suggestion and printed the header if we are
> using stdout, and made some more changes. Comments welcome.
> 
> My previous change broke the feature of indenting non-header lines so I
> added the SOH character to the beginning of the header lines so we can
> tell it is a header. This is then not printed in format_debug_text but lines
> that do not start with this special character are indented if in timestamp
> mode.
> 
> When "debug pid = yes" is set, (which only takes affect if one of
> the timestamp
> parameters is also set) then the non-header lines begin with the the
> "[pid=xxxx] " string so you can tell which smbd the message belongs to
> when you are not sending output to separate files.

Ok, I tried to push this but I'm running into some problems
with autobuild, I think it's examining headers that get changed
here. I really like this patch so I'll see if I can figure this
out..

Jeremy.


More information about the samba-technical mailing list