[Ns-bugs] [Bug 190] Reminder: NS_LOG_APPEND_CONTEXT
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Tue Oct 20 09:38:29 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=190
Tom Henderson <tomh at tomh.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomh at tomh.org
--- Comment #1 from Tom Henderson <tomh at tomh.org> 2009-10-20 12:38:29 EDT ---
Reminder on typical usage:
#define NS_LOG_APPEND_CONTEXT \
if (GetObject<Node> ()) { std::clog << "[node " << GetObject<Node> ()->GetId
() << "] "; }
Prints out a "[node %d]" in the log output, such as in OlsrAgent:
28.3839s [node 3] Looking at neighbor tuple:
NeighborTuple(neighborMainAddr=10.1.1.2, status=SYM, willingness=3)
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list