Re: [PATCH] Fix logging logic in output().

Dave Jones <[email protected]> Wed, 17 Feb 2016 11:55:18 -0500
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
On Wed, Feb 17, 2016 at 05:20:39PM +0100, Artem Savkov wrote:
 > Commit "preparation for different forms of logging." contained a typo that
 > broke logging to mainlogfile.
 > 
 > Signed-off-by: Artem Savkov <[email protected]>
 > ---
 >  log.c | 2 +-
 >  1 file changed, 1 insertion(+), 1 deletion(-)
 > 
 > diff --git a/log.c b/log.c
 > index dbac844..aee5a67 100644
 > --- a/log.c
 > +++ b/log.c
 > @@ -103,7 +103,7 @@ void output(unsigned char level, const char *fmt, ...)
 >  	}
 >  
 >  	/* go on with file logs only if enabled */
 > -	if (logging == LOGGING_FILES)
 > +	if (logging == LOGGING_DISABLED)
 >  		return;


Duh, yeah, that's pretty silly.  This prep work still hasn't materialised
into other forms of logging, but for now this is the obvious fix.

thanks,
	Dave