--- a/src/network/utils/simple-channel.cc Fri Nov 16 22:23:40 2012 +0100
+++ b/src/network/utils/simple-channel.cc Fri Nov 16 22:27:18 2012 +0100
@@ -42,6 +42,7 @@
SimpleChannel::SimpleChannel ()
{
+ NS_LOG_FUNCTION (this);
}
void
@@ -49,7 +50,7 @@
Mac48Address to, Mac48Address from,
Ptr<SimpleNetDevice> sender)
{
- NS_LOG_FUNCTION (p << protocol << to << from << sender);
+ NS_LOG_FUNCTION (this << p << protocol << to << from << sender);
for (std::vector<Ptr<SimpleNetDevice> >::const_iterator i = m_devices.begin (); i != m_devices.end (); ++i)
{
Ptr<SimpleNetDevice> tmp = *i;
@@ -65,17 +66,20 @@
void
SimpleChannel::Add (Ptr<SimpleNetDevice> device)
{
+ NS_LOG_FUNCTION (this << device);
m_devices.push_back (device);
}
uint32_t
SimpleChannel::GetNDevices (void) const
{
+ NS_LOG_FUNCTION (this);
return m_devices.size ();
}
Ptr<NetDevice>
SimpleChannel::GetDevice (uint32_t i) const
{
+ NS_LOG_FUNCTION (this << i);
return m_devices[i];
}