diff options
author | Bill Clark <saikou@vt.edu> | 2015-04-01 17:56:33 -0400 |
---|---|---|
committer | Bill Clark <saikou@vt.edu> | 2015-04-01 17:56:53 -0400 |
commit | 0d19b0d29c6bb7ae5af0f1f28049cdd633fa686a (patch) | |
tree | 8df711c84e809eaf518627d002bf67a69e5e7ee8 /gnuradio-runtime/lib/hier_block2_detail.cc | |
parent | f1657258ccaa1b62d9ef8bd4d8e9b3cebf865b9c (diff) |
gnuradio-runtume: hier_block2 output buffer lengths - clean up of debug output
Diffstat (limited to 'gnuradio-runtime/lib/hier_block2_detail.cc')
-rw-r--r-- | gnuradio-runtime/lib/hier_block2_detail.cc | 60 |
1 files changed, 44 insertions, 16 deletions
diff --git a/gnuradio-runtime/lib/hier_block2_detail.cc b/gnuradio-runtime/lib/hier_block2_detail.cc index 5b935d11ad..a735de3fff 100644 --- a/gnuradio-runtime/lib/hier_block2_detail.cc +++ b/gnuradio-runtime/lib/hier_block2_detail.cc @@ -30,8 +30,6 @@ #include <stdexcept> #include <sstream> #include <boost/format.hpp> -#include <stdio.h> -#include <typeinfo> namespace gr { @@ -526,12 +524,14 @@ namespace gr { // Get the min and max buffer length if(set_all_min_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("Getting (%s) min buffer\n",(d_owner->alias()).c_str()); + std::cout << "Getting (" << (d_owner->alias()).c_str() + << ") min buffer" << std::endl; min_buff = d_owner->min_output_buffer(); } if(set_all_max_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("Getting (%s) max buffer\n",(d_owner->alias()).c_str()); + std::cout << "Getting (" << (d_owner->alias()).c_str() + << ") max buffer" << std::endl; max_buff = d_owner->max_output_buffer(); } @@ -554,7 +554,9 @@ namespace gr { if(bb != 0){ if(bb->min_output_buffer(0) != min_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("Block (%s) min_buff (%ld)\n",(bb->alias()).c_str(),min_buff); + std::cout << "Block (" << (bb->alias()).c_str() + << ") min_buff (" << min_buff + << ")" << std::endl; bb->set_min_output_buffer(min_buff); } } @@ -563,7 +565,9 @@ namespace gr { if(hh != 0){ if(hh->min_output_buffer(0) != min_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("HBlock (%s) min_buff (%ld)\n",(hh->alias()).c_str(),min_buff); + std::cout << "HBlock (" << (hh->alias()).c_str() + << ") min_buff (" << min_buff + << ")" << std::endl; hh->set_min_output_buffer(min_buff); } } @@ -577,7 +581,9 @@ namespace gr { if(bb != 0){ if(bb->max_output_buffer(0) != max_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("Block (%s) max_buff (%ld)\n",(bb->alias()).c_str(),max_buff); + std::cout << "Block (" << (bb->alias()).c_str() + << ") max_buff (" << max_buff + << ")" << std::endl; bb->set_max_output_buffer(max_buff); } } @@ -586,7 +592,9 @@ namespace gr { if(hh != 0){ if(hh->max_output_buffer(0) != max_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("HBlock (%s) max_buff (%ld)\n",(hh->alias()).c_str(),max_buff); + std::cout << "HBlock (" << (hh->alias()).c_str() + << ") max_buff (" << max_buff + << ")" << std::endl; hh->set_max_output_buffer(max_buff); } } @@ -608,7 +616,9 @@ namespace gr { if(bb != 0){ if(bb->min_output_buffer(0) != min_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("Block (%s) min_buff (%ld)\n",(bb->alias()).c_str(),min_buff); + std::cout << "Block (" << (bb->alias()).c_str() + << ") min_buff (" << min_buff + << ")" << std::endl; bb->set_min_output_buffer(min_buff); } } @@ -617,7 +627,9 @@ namespace gr { if(hh != 0){ if(hh->min_output_buffer(0) != min_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("HBlock (%s) min_buff (%ld)\n",(hh->alias()).c_str(),min_buff); + std::cout << "HBlock (" << (hh->alias()).c_str() + << ") min_buff (" << min_buff + << ")" << std::endl; hh->set_min_output_buffer(min_buff); } } @@ -631,7 +643,9 @@ namespace gr { if(bb != 0){ if(bb->max_output_buffer(0) != max_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("Block (%s) max_buff (%ld)\n",(bb->alias()).c_str(),max_buff); + std::cout << "Block (" << (bb->alias()).c_str() + << ") max_buff (" << max_buff + << ")" << std::endl; bb->set_max_output_buffer(max_buff); } } @@ -640,7 +654,9 @@ namespace gr { if(hh != 0){ if(hh->max_output_buffer(0) != max_buff){ if(HIER_BLOCK2_DETAIL_DEBUG) - printf("HBlock (%s) max_buff (%ld)\n",(hh->alias()).c_str(),max_buff); + std::cout << "HBlock (" << (hh->alias()).c_str() + << ") max_buff (" << max_buff + << ")" << std::endl; hh->set_max_output_buffer(max_buff); } } @@ -762,7 +778,10 @@ namespace gr { if(bb != 0){ int bb_src_port = d_outputs[i].port(); if(HIER_BLOCK2_DETAIL_DEBUG) - printf("Block (%s) Port (%d) min_buff (%ld)\n",(bb->alias()).c_str(),bb_src_port,min_buff); + std::cout << "Block (" << (bb->alias()).c_str() + << ") Port (" << bb_src_port + << ") min_buff (" << min_buff + << ")" << std::endl; bb->set_min_output_buffer(bb_src_port, min_buff); } else{ @@ -770,7 +789,10 @@ namespace gr { if(hh != 0){ int hh_src_port = d_outputs[i].port(); if(HIER_BLOCK2_DETAIL_DEBUG) - printf("HBlock (%s) Port (%d) min_buff (%ld)\n",(hh->alias()).c_str(),hh_src_port,min_buff); + std::cout << "HBlock (" << (hh->alias()).c_str() + << ") Port (" << hh_src_port + << ") min_buff ("<< min_buff + << ")" << std::endl; hh->set_min_output_buffer(hh_src_port, min_buff); } } @@ -783,7 +805,10 @@ namespace gr { if(bb != 0){ int bb_src_port = d_outputs[i].port(); if(HIER_BLOCK2_DETAIL_DEBUG) - printf("Block (%s) Port (%d) max_buff (%ld)\n",(bb->alias()).c_str(),bb_src_port,max_buff); + std::cout << "Block (" << (bb->alias()).c_str() + << ") Port (" << bb_src_port + << ") max_buff (" << max_buff + << ")" << std::endl; bb->set_max_output_buffer(bb_src_port, max_buff); } else{ @@ -791,7 +816,10 @@ namespace gr { if(hh != 0){ int hh_src_port = d_outputs[i].port(); if(HIER_BLOCK2_DETAIL_DEBUG) - printf("HBlock (%s) Port (%d) max_buff (%ld)\n",(hh->alias()).c_str(),hh_src_port,max_buff); + std::cout << "HBlock (" << (hh->alias()).c_str() + << ") Port (" << hh_src_port + << ") max_buff (" << max_buff + << ")" << std::endl; hh->set_max_output_buffer(hh_src_port, max_buff); } } |