From 1e75a2cb6b0682f7b93be564bd84d267d4efdbdf Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Tue, 8 Apr 2014 15:06:52 +0200 Subject: [PATCH] Remove logging cout --- src/lr-wpan/model/lr-wpan-phy.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/lr-wpan/model/lr-wpan-phy.cc b/src/lr-wpan/model/lr-wpan-phy.cc index cd7dcf881..010c78c64 100644 --- a/src/lr-wpan/model/lr-wpan-phy.cc +++ b/src/lr-wpan/model/lr-wpan-phy.cc @@ -256,8 +256,6 @@ LrWpanPhy::StartRx (Ptr spectrumRxParams) NS_LOG_FUNCTION (this << spectrumRxParams); LrWpanSpectrumValueHelper psdHelper; - std::cout << Simulator::Now () << " StartRx " << this << std::endl; - Ptr lrWpanRxParams = DynamicCast (spectrumRxParams); NS_ASSERT (lrWpanRxParams != 0); Ptr p = (lrWpanRxParams->packetBurst->GetPackets ()).front (); @@ -331,8 +329,6 @@ LrWpanPhy::EndRx (Ptr params) NS_LOG_FUNCTION (this); NS_ASSERT (params != 0); - std::cout << Simulator::Now () << " EndRx " << this << " " << int(m_trxState) << " - "; - // Calculate whether packet was lost. LrWpanSpectrumValueHelper psdHelper; Ptr currentRxParams = m_currentRxPacket.first; @@ -362,13 +358,8 @@ LrWpanPhy::EndRx (Ptr params) if (m_random.GetValue () < per) { // The packet was destroyed, drop the packet after reception. - std::cout << "discarding " << sinr << " - " << per; m_currentRxPacket.second = true; } - else - { - std::cout << "processing " << sinr << " - " << per; - } } else { @@ -378,8 +369,6 @@ LrWpanPhy::EndRx (Ptr params) } } - std::cout << std::endl; - // Update the interference. m_signal->RemoveSignal (params->psd); m_rxLastUpdate = Simulator::Now (); @@ -469,7 +458,6 @@ LrWpanPhy::PdDataRequest (const uint32_t psduLength, Ptr p) Ptr pb = CreateObject (); pb->AddPacket (p); txParams->packetBurst = pb; - std::cout << "** " << Simulator::Now () << " - StartTx " << this << std::endl; m_channel->StartTx (txParams); m_pdDataRequest = Simulator::Schedule (txParams->duration, &LrWpanPhy::EndTx, this); ChangeTrxState (IEEE_802_15_4_PHY_BUSY_TX); @@ -595,8 +583,6 @@ LrWpanPhy::PlmeSetTRXStateRequest (LrWpanPhyEnumeration state) { NS_LOG_FUNCTION (this << state); - // std::cout << Simulator::Now () << " PlmeSetTRXStateRequest " << int (state) << std::endl; - // Check valid states (Table 14) NS_ABORT_IF ( (state != IEEE_802_15_4_PHY_RX_ON) && (state != IEEE_802_15_4_PHY_TRX_OFF)