diff options
author | Josh Blum | 2012-09-15 13:07:21 -0400 |
---|---|---|
committer | Josh Blum | 2012-09-15 13:07:21 -0400 |
commit | 052d953abfe9183b1ac5384d0ca494c1162b2cef (patch) | |
tree | 276d579a30e87428aea168a82e3e0f5524c7d8b2 /lib | |
parent | f91c377f1636afb42cadea0da5f34cef545d1ef2 (diff) | |
download | sandhi-052d953abfe9183b1ac5384d0ca494c1162b2cef.tar.gz sandhi-052d953abfe9183b1ac5384d0ca494c1162b2cef.tar.bz2 sandhi-052d953abfe9183b1ac5384d0ca494c1162b2cef.zip |
use cerr for all of the debug prints
Diffstat (limited to 'lib')
-rw-r--r-- | lib/block_handlers.cpp | 2 | ||||
-rw-r--r-- | lib/block_task.cpp | 2 | ||||
-rw-r--r-- | lib/element.cpp | 2 | ||||
-rw-r--r-- | lib/port_handlers.cpp | 4 | ||||
-rw-r--r-- | lib/top_block.cpp | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/block_handlers.cpp b/lib/block_handlers.cpp index 243d158..d61a7e2 100644 --- a/lib/block_handlers.cpp +++ b/lib/block_handlers.cpp @@ -25,7 +25,7 @@ void ElementImpl::handle_block_msg( const tsbe::TaskInterface &task_iface, const tsbe::Wax &msg ){ - if (MESSAGE) std::cout << "handle_block_msg (" << msg.type().name() << ") " << name << std::endl; + if (MESSAGE) std::cerr << "handle_block_msg (" << msg.type().name() << ") " << name << std::endl; //a buffer has returned from the downstream //(all interested consumers have finished with it) diff --git a/lib/block_task.cpp b/lib/block_task.cpp index cddfb97..3b7e0e9 100644 --- a/lib/block_task.cpp +++ b/lib/block_task.cpp @@ -64,7 +64,7 @@ void ElementImpl::mark_done(const tsbe::TaskInterface &task_iface) task_iface.post_downstream(i, CheckTokensMessage()); } - if (ARMAGEDDON) std::cout + if (ARMAGEDDON) std::cerr << "==================================================\n" << "== The " << name << " is done...\n" << "==================================================\n" diff --git a/lib/element.cpp b/lib/element.cpp index cdb856e..5ae20e0 100644 --- a/lib/element.cpp +++ b/lib/element.cpp @@ -33,7 +33,7 @@ Element::Element(const std::string &name) (*this)->name = name; (*this)->unique_id = ++unique_id_pool; - if (GENESIS) std::cout << "New element: " << name << std::endl; + if (GENESIS) std::cerr << "New element: " << name << std::endl; //default io signature to something IOSignature sig; sig.push_back(1); diff --git a/lib/port_handlers.cpp b/lib/port_handlers.cpp index 80f8239..d0d5896 100644 --- a/lib/port_handlers.cpp +++ b/lib/port_handlers.cpp @@ -24,7 +24,7 @@ void ElementImpl::handle_input_msg( const size_t index, const tsbe::Wax &msg ){ - if (MESSAGE) std::cout << "handle_input_msg (" << msg.type().name() << ") " << name << std::endl; + if (MESSAGE) std::cerr << "handle_input_msg (" << msg.type().name() << ") " << name << std::endl; //handle incoming stream buffer, push into the queue if (msg.type() == typeid(SBuffer)) @@ -68,7 +68,7 @@ void ElementImpl::handle_output_msg( const size_t index, const tsbe::Wax &msg ){ - if (MESSAGE) std::cout << "handle_output_msg (" << msg.type().name() << ") " << name << std::endl; + if (MESSAGE) std::cerr << "handle_output_msg (" << msg.type().name() << ") " << name << std::endl; //store the token of the downstream consumer if (msg.type() == typeid(Token)) diff --git a/lib/top_block.cpp b/lib/top_block.cpp index f3e1fc8..3231055 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -33,7 +33,7 @@ TopBlock::TopBlock(const std::string &name): (*this)->executor = tsbe::Executor(config); (*this)->token = Token::make(); (*this)->thread_group = SharedThreadGroup(new boost::thread_group()); - if (GENESIS) std::cout + if (GENESIS) std::cerr << "===================================================\n" << "== Top Block Created: " << name << "\n" << "===================================================\n" @@ -45,7 +45,7 @@ void ElementImpl::top_block_cleanup(void) TopBlockMessage event; event.what = TopBlockMessage::INERT; this->executor.post_msg(event); - if (ARMAGEDDON) std::cout + if (ARMAGEDDON) std::cerr << "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n" << "xx Top Block Destroyed: " << name << "\n" << "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n" |