add NS_LOG_FUNCTION to several constructors/destructors/DoDisposes
authorAndrey Mazo <mazo@iitp.ru>
Thu, 15 Oct 2009 13:49:42 +0400
changeset 5421 612dd4189fa7
parent 5420 f8d0052cb2d5
child 5422 21a4f34518ff
add NS_LOG_FUNCTION to several constructors/destructors/DoDisposes
src/devices/mesh/dot11s/hwmp-protocol.cc
src/devices/wifi/wifi-net-device.cc
src/devices/wifi/yans-wifi-channel.cc
src/node/net-device.cc
--- a/src/devices/mesh/dot11s/hwmp-protocol.cc	Thu Oct 15 10:53:31 2009 -0700
+++ b/src/devices/mesh/dot11s/hwmp-protocol.cc	Thu Oct 15 13:49:42 2009 +0400
@@ -184,6 +184,7 @@
   m_doFlag (false),
   m_rfFlag (false)
 {
+  NS_LOG_FUNCTION_NOARGS ();
 
   if (m_isRoot)
     {
@@ -193,11 +194,13 @@
 
 HwmpProtocol::~HwmpProtocol ()
 {
+  NS_LOG_FUNCTION_NOARGS ();
 }
 
 void
 HwmpProtocol::DoDispose ()
 {
+  NS_LOG_FUNCTION_NOARGS ();
   for (std::map<Mac48Address, EventId>::iterator i = m_preqTimeouts.begin (); i != m_preqTimeouts.end (); i ++)
     {
       i->second.Cancel ();
--- a/src/devices/wifi/wifi-net-device.cc	Thu Oct 15 10:53:31 2009 -0700
+++ b/src/devices/wifi/wifi-net-device.cc	Thu Oct 15 13:49:42 2009 +0400
@@ -28,6 +28,9 @@
 #include "ns3/pointer.h"
 #include "ns3/node.h"
 #include "ns3/trace-source-accessor.h"
+#include "ns3/log.h"
+
+NS_LOG_COMPONENT_DEFINE ("WifiNetDevice");
 
 namespace ns3 {
 
@@ -65,13 +68,18 @@
 WifiNetDevice::WifiNetDevice ()
   : m_mtu (0),
     m_configComplete (false)
-{}
+{
+  NS_LOG_FUNCTION_NOARGS ();
+}
 WifiNetDevice::~WifiNetDevice ()
-{}
+{
+  NS_LOG_FUNCTION_NOARGS ();
+}
 
 void
 WifiNetDevice::DoDispose (void)
 {
+  NS_LOG_FUNCTION_NOARGS ();
   m_node = 0;
   m_mac->Dispose ();
   m_phy->Dispose ();
--- a/src/devices/wifi/yans-wifi-channel.cc	Thu Oct 15 10:53:31 2009 -0700
+++ b/src/devices/wifi/yans-wifi-channel.cc	Thu Oct 15 13:49:42 2009 +0400
@@ -56,6 +56,7 @@
 {}
 YansWifiChannel::~YansWifiChannel ()
 {
+  NS_LOG_FUNCTION_NOARGS ();
   m_phyList.clear ();
 }
 
--- a/src/node/net-device.cc	Thu Oct 15 10:53:31 2009 -0700
+++ b/src/node/net-device.cc	Thu Oct 15 13:49:42 2009 +0400
@@ -45,6 +45,8 @@
 }
 
 NetDevice::~NetDevice ()
-{}
+{
+  NS_LOG_FUNCTION_NOARGS ();
+}
 
 } // namespace ns3