Improve debug logging in Node::ReceiveFromDevice

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-10-06 18:21:04 +01:00
parent 8a664200e5
commit 24a1fdfc69

View File

@@ -241,7 +241,10 @@ bool
Node::ReceiveFromDevice (Ptr<NetDevice> device, Ptr<const Packet> packet, uint16_t protocol,
const Address &from, const Address &to, NetDevice::PacketType packetType, bool promiscuous)
{
NS_LOG_FUNCTION(device->GetName ());
NS_LOG_DEBUG("Node " << GetId () << " ReceiveFromDevice: dev "
<< device->GetIfIndex () << " ("
<< device->GetName () << " type " << device->GetInstanceTypeId ().GetName ()
<< ") Packet UID " << packet->GetUid ());
bool found = false;
for (ProtocolHandlerList::iterator i = m_handlers.begin ();