--- a/src/devices/point-to-point/point-to-point-net-device.cc Tue May 26 17:18:06 2009 +0100
+++ b/src/devices/point-to-point/point-to-point-net-device.cc Mon Jun 08 17:39:13 2009 +0100
@@ -16,6 +16,20 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define NS_LOG_APPEND_CONTEXT \
+ { \
+ if (m_node) \
+ { \
+ std::clog << "[node " << m_node->GetId () << " "; \
+ } \
+ else \
+ { \
+ std::clog << "["; \
+ } \
+ std::clog << "dev " << GetIfIndex () << "] "; \
+ }
+
+
#include "ns3/log.h"
#include "ns3/queue.h"
#include "ns3/simulator.h"
@@ -157,7 +171,7 @@
PointToPointNetDevice::TransmitStart (Ptr<Packet> p)
{
NS_LOG_FUNCTION (this << p);
- NS_LOG_LOGIC ("UID is " << p->GetUid () << ")");
+ NS_LOG_LOGIC ("UID is " << p->GetUid () << ", size=" << p->GetSize ());
//
// This function is called to start the process of transmitting a packet.
// We need to tell the channel that we've started wiggling the wire and