From f609bc4fd20b1e4951abc04158bd8db64aca9bde Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Tue, 3 May 2011 11:16:58 +0200 Subject: [PATCH] do not dump debug out on std::cout --- src/wimax/test/phy-test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wimax/test/phy-test.cc b/src/wimax/test/phy-test.cc index ce00c4385..4dcd4f74e 100644 --- a/src/wimax/test/phy-test.cc +++ b/src/wimax/test/phy-test.cc @@ -39,6 +39,8 @@ using namespace ns3; +NS_LOG_COMPONENT_DEFINE("WimaxPhyTest"); + /* * Configure a network with 3 SS and 1 BS * Install a SIMPLE OFDM PHY layer on all nodes and check that all SSs @@ -92,7 +94,7 @@ Ns3WimaxSimpleOFDMTestCase::DoRunOnce (double FrameDuration) if (ssDevs.Get (i)->GetObject ()->IsRegistered () == false) { - std::cout << "SS[" << i << "] not registered" << std::endl; + NS_LOG_DEBUG ("SS[" << i << "] not registered"); return true; // Test fail because SS[i] is not registered } } @@ -109,7 +111,7 @@ Ns3WimaxSimpleOFDMTestCase::DoRun (void) frameDuratioTab[7] = { 0.0025, 0.004, 0.005, 0.008, 0.01, 0.0125, 0.02 }; for (int i = 0; i < 7; i++) { - std::cout << "Frame Duration = " << frameDuratioTab[i] << std::endl; + NS_LOG_DEBUG ("Frame Duration = " << frameDuratioTab[i]); if (DoRunOnce (frameDuratioTab[i]) != false) { return;