Fix logging in Ipv4L3Protocol::AddInterface and Ipv4L3Protocol::Receive.
authorVedran Miletić <rivanvx@gmail.com>
Wed, 08 Aug 2012 17:00:29 +0200
changeset 8960 beab5f474e09
parent 8959 d830f5eac8ec
child 8962 b5b0643fc3be
Fix logging in Ipv4L3Protocol::AddInterface and Ipv4L3Protocol::Receive.
src/internet/model/ipv4-l3-protocol.cc
--- a/src/internet/model/ipv4-l3-protocol.cc	Sat Aug 04 09:40:51 2012 -0700
+++ b/src/internet/model/ipv4-l3-protocol.cc	Wed Aug 08 17:00:29 2012 +0200
@@ -267,7 +267,7 @@
 uint32_t 
 Ipv4L3Protocol::AddInterface (Ptr<NetDevice> device)
 {
-  NS_LOG_FUNCTION (this << &device);
+  NS_LOG_FUNCTION (this << device);
 
   Ptr<Node> node = GetObject<Node> ();
   node->RegisterProtocolHandler (MakeCallback (&Ipv4L3Protocol::Receive, this), 
@@ -434,7 +434,7 @@
 Ipv4L3Protocol::Receive ( Ptr<NetDevice> device, Ptr<const Packet> p, uint16_t protocol, const Address &from,
                           const Address &to, NetDevice::PacketType packetType)
 {
-  NS_LOG_FUNCTION (this << &device << p << protocol <<  from);
+  NS_LOG_FUNCTION (this << device << p << protocol <<  from << to << packetType);
 
   NS_LOG_LOGIC ("Packet from " << from << " received on node " << 
                 m_node->GetId ());