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

J.T. Conklin jtc at svn.xorp.org
Fri Jan 23 09:11:35 PST 2009


CVSROOT:	/cvsroot
Module name:	xorp
Changes by:	jtc at svn.xorp.org.(none)	2009-01-23 17:11:35 UTC

XORP CVS repository


Modified files:
	libxorp       xlog.c xlog.h 

Log message:
	Changed XLOG_ASSERT macro to use a new xlog_assert() function, which takes
	the module name, file name and line number, function name, and stringified
	version of the failed assertion like the XLOG_FATAL macro it replaced, but
	the "Assertion (%s) failed" format string is now in the function.
	
	Even though in static linking, any duplicate format strings usually are
	merged by the linker, this reduced total footprint by ~90KB.  With dynamic
	linking the savings could be even better, as there tended to be a format
	string per shared library and now they'll only be one in libxorp.so.

Revision  Changes                               Path
1.34      +8 -1;  commitid: vgq1nWh2KcS97Bzt;   xorp/libxorp/xlog.c
1.27      +23 -4;  commitid: vgq1nWh2KcS97Bzt;  xorp/libxorp/xlog.h



More information about the Xorp-cvs mailing list