[Xorp-cvs] XORP cvs commit: xorp/libxorp

J.T. Conklin jtc at svn.xorp.org
Thu Jan 22 10:03:00 PST 2009


CVSROOT:	/cvsroot
Module name:	xorp
Changes by:	jtc at svn.xorp.org.(none)	2009-01-22 18:03:00 UTC

XORP CVS repository


Modified files:
	libxorp       xlog.c xlog.h 

Log message:
	Change log macros and the underlying log functions to pass the source
	file name (__FILE__), line number (__LINE__), and the function name
	(__FUNCTION__) instead of creating a local character buffer on the
	stack, using sprintf to create a string with the above values, and
	then passing that formatted buffer.  This moves the formatting of
	the location string from the caller to the callee, removing lots and
	lots of duplicated code.

Revision  Changes                                Path
1.33      +11 -5;  commitid: IiS1ADFQOoRBntzt;   xorp/libxorp/xlog.c
1.25      +26 -15;  commitid: IiS1ADFQOoRBntzt;  xorp/libxorp/xlog.h



More information about the Xorp-cvs mailing list