diff options
author | Martin Braun | 2012-12-18 19:43:53 +0100 |
---|---|---|
committer | Martin Braun | 2012-12-18 19:43:53 +0100 |
commit | 2dcff4761ba1ef71d4798a4386e98a30163a83a2 (patch) | |
tree | 4df6a727bfdd970467e24d1b1b72da3cea786b3b | |
parent | b15b38df132ae662c1b9e3ebe5ea5ba4f7180afa (diff) | |
download | gnuradio-2dcff4761ba1ef71d4798a4386e98a30163a83a2.tar.gz gnuradio-2dcff4761ba1ef71d4798a4386e98a30163a83a2.tar.bz2 gnuradio-2dcff4761ba1ef71d4798a4386e98a30163a83a2.zip |
core: gr_tag_debug handles lacking srcid
-rw-r--r-- | gnuradio-core/src/lib/general/gr_tag_debug.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/general/gr_tag_debug.cc b/gnuradio-core/src/lib/general/gr_tag_debug.cc index 5833a1891..ecf1b65e1 100644 --- a/gnuradio-core/src/lib/general/gr_tag_debug.cc +++ b/gnuradio-core/src/lib/general/gr_tag_debug.cc @@ -81,10 +81,10 @@ gr_tag_debug::work(int noutput_items, get_tags_in_range(d_tags, i, abs_N, end_N); if(d_display) { - sout << "Input Stream: " << i << std::endl; + sout << "Input Stream: " << std::setw(2) << std::setfill('0') << i << std::setfill(' ') << std::endl; for(d_tags_itr = d_tags.begin(); d_tags_itr != d_tags.end(); d_tags_itr++) { sout << std::setw(10) << "Offset: " << d_tags_itr->offset - << std::setw(10) << "Source: " << pmt::pmt_symbol_to_string(d_tags_itr->srcid) + << std::setw(10) << "Source: " << (pmt::pmt_is_symbol(d_tags_itr->srcid) ? pmt::pmt_symbol_to_string(d_tags_itr->srcid) : "n/a") << std::setw(10) << "Key: " << pmt::pmt_symbol_to_string(d_tags_itr->key) << std::setw(10) << "Value: "; sout << d_tags_itr->value << std::endl; |