[Openais] TRUNK patch - Allow shortened file/line output from logsys.c

Steven Dake sdake at redhat.com
Tue Jul 1 15:34:32 PDT 2008


one other note on this patch - could you make a separate patch for
logsys_overview.8 to include the new modes?

Thanks
-steve

On Mon, 2008-06-30 at 17:03 -0400, Lon Hohberger wrote:
> On Fri, 2008-06-27 at 15:33 -0400, Lon Hohberger wrote:
> > If you add LOG_MODE_SHORT_FILELINE, it changes the the following debug
> > line from:
> > 
> > [/sandbox/lhh/cluster/fence/agents/xvm/fence_xvmd.c:0587] My Node ID = 1
> > 
> > ...to:
> > 
> > [fence_xvmd.c:0587] My Node ID = 1
> > 
> > Most developers who insert LOG_DEBUG lines will be able to determine out
> > of context which source code file a particular log message came from, so
> > it is arguable the entire path spec is unnecessary (and perhaps
> > "SHORT_FILELINE" should be the default; but we'll leave that for another
> > day).
> 
> This patch supplants the previous one and adds support for setting
> "nosubsys" as a mode flag instead of its own global variable (which
> can't currently be unset).
> 
> -- Lon
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais



More information about the Openais mailing list