diff options
Diffstat (limited to 'gr-blocks/lib')
-rw-r--r-- | gr-blocks/lib/annotator_raw_impl.cc | 2 | ||||
-rw-r--r-- | gr-blocks/lib/file_meta_sink_impl.cc | 8 | ||||
-rw-r--r-- | gr-blocks/lib/file_meta_source_impl.cc | 12 | ||||
-rw-r--r-- | gr-blocks/lib/message_debug_impl.cc | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/gr-blocks/lib/annotator_raw_impl.cc b/gr-blocks/lib/annotator_raw_impl.cc index 4d2239bef7..591b8bec1a 100644 --- a/gr-blocks/lib/annotator_raw_impl.cc +++ b/gr-blocks/lib/annotator_raw_impl.cc @@ -70,7 +70,7 @@ void annotator_raw_impl::add_tag(uint64_t offset, pmt_t key, pmt_t val) // make sure we are not adding an item in the past! if (tag.offset > nitems_read(0)) { throw std::runtime_error( - "annotator_raw::add_tag: item added too far in the past\n."); + "annotator_raw::add_tag: item added too far in the past."); } } diff --git a/gr-blocks/lib/file_meta_sink_impl.cc b/gr-blocks/lib/file_meta_sink_impl.cc index e3ce72db97..4992ba0c69 100644 --- a/gr-blocks/lib/file_meta_sink_impl.cc +++ b/gr-blocks/lib/file_meta_sink_impl.cc @@ -107,7 +107,7 @@ file_meta_sink_impl::file_meta_sink_impl(size_t itemsize, d_state = STATE_INLINE; if (!open(filename)) - throw std::runtime_error("file_meta_sink: can't open file\n"); + throw std::runtime_error("file_meta_sink: can't open file"); pmt::pmt_t timestamp = pmt::make_tuple(pmt::from_uint64(0), pmt::from_double(0)); @@ -243,7 +243,7 @@ void file_meta_sink_impl::write_header(FILE* fp, pmt::pmt_t header, pmt::pmt_t e std::string extra_str = pmt::serialize_str(extra); if ((header_str.size() != METADATA_HEADER_SIZE) && (extra_str.size() != d_extra_size)) - throw std::runtime_error("file_meta_sink: header or extra_dict is wrong size.\n"); + throw std::runtime_error("file_meta_sink: header or extra_dict is wrong size."); size_t nwritten = 0; while (nwritten < header_str.size()) { @@ -252,7 +252,7 @@ void file_meta_sink_impl::write_header(FILE* fp, pmt::pmt_t header, pmt::pmt_t e nwritten += count; if ((count == 0) && (ferror(fp))) { fclose(fp); - throw std::runtime_error("file_meta_sink: error writing header to file.\n"); + throw std::runtime_error("file_meta_sink: error writing header to file."); } } @@ -263,7 +263,7 @@ void file_meta_sink_impl::write_header(FILE* fp, pmt::pmt_t header, pmt::pmt_t e nwritten += count; if ((count == 0) && (ferror(fp))) { fclose(fp); - throw std::runtime_error("file_meta_sink: error writing extra to file.\n"); + throw std::runtime_error("file_meta_sink: error writing extra to file."); } } diff --git a/gr-blocks/lib/file_meta_source_impl.cc b/gr-blocks/lib/file_meta_source_impl.cc index 557abee7cc..6637420981 100644 --- a/gr-blocks/lib/file_meta_source_impl.cc +++ b/gr-blocks/lib/file_meta_source_impl.cc @@ -87,7 +87,7 @@ file_meta_source_impl::file_meta_source_impl(const std::string& filename, d_state = STATE_INLINE; if (!open(filename, hdr_filename)) - throw std::runtime_error("file_meta_source: can't open file\n"); + throw std::runtime_error("file_meta_source: can't open file"); do_update(); @@ -96,7 +96,7 @@ file_meta_source_impl::file_meta_source_impl(const std::string& filename, parse_header(hdr, 0, d_tags); parse_extras(extras, 0, d_tags); } else - throw std::runtime_error("file_meta_source: could not read header.\n"); + throw std::runtime_error("file_meta_source: could not read header."); // Set output signature based on itemsize info in header set_output_signature(io_signature::make(1, 1, d_itemsize)); @@ -193,7 +193,7 @@ void file_meta_source_impl::parse_header(pmt::pmt_t hdr, t.srcid = alias_pmt(); tags.push_back(t); } else { - throw std::runtime_error("file_meta_source: Could not extract sample rate.\n"); + throw std::runtime_error("file_meta_source: Could not extract sample rate."); } // GET TIME STAMP @@ -208,7 +208,7 @@ void file_meta_source_impl::parse_header(pmt::pmt_t hdr, t.srcid = alias_pmt(); tags.push_back(t); } else { - throw std::runtime_error("file_meta_source: Could not extract time stamp.\n"); + throw std::runtime_error("file_meta_source: Could not extract time stamp."); } // GET ITEM SIZE OF DATA @@ -216,7 +216,7 @@ void file_meta_source_impl::parse_header(pmt::pmt_t hdr, d_itemsize = pmt::to_long(pmt::dict_ref(hdr, pmt::string_to_symbol("size"), pmt::PMT_NIL)); } else { - throw std::runtime_error("file_meta_source: Could not extract item size.\n"); + throw std::runtime_error("file_meta_source: Could not extract item size."); } // GET SEGMENT SIZE @@ -227,7 +227,7 @@ void file_meta_source_impl::parse_header(pmt::pmt_t hdr, // Convert from bytes to items d_seg_size /= d_itemsize; } else { - throw std::runtime_error("file_meta_source: Could not extract segment size.\n"); + throw std::runtime_error("file_meta_source: Could not extract segment size."); } } diff --git a/gr-blocks/lib/message_debug_impl.cc b/gr-blocks/lib/message_debug_impl.cc index a8c84aa509..284048c545 100644 --- a/gr-blocks/lib/message_debug_impl.cc +++ b/gr-blocks/lib/message_debug_impl.cc @@ -80,7 +80,7 @@ pmt::pmt_t message_debug_impl::get_message(int i) gr::thread::scoped_lock guard(d_mutex); if ((size_t)i >= d_messages.size()) { - throw std::runtime_error("message_debug: index for message out of bounds.\n"); + throw std::runtime_error("message_debug: index for message out of bounds."); } return d_messages[i]; |