summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2019-12-21 19:38:44 +0000
committerMartin Braun <martin.braun@ettus.com>2020-01-01 19:40:43 -0800
commit183a35ee554fd2034acbc5ac91e32abd046d5de1 (patch)
treeeb77ac056d06a81c2a9e2c9f7b4901cac63077d3
parent24725470892c770b8f0cd5f839588a8a5125caa6 (diff)
Remove newlines from exception messages
-rw-r--r--gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h6
-rw-r--r--gnuradio-runtime/lib/block.cc2
-rw-r--r--gnuradio-runtime/lib/controlport/rpcmanager.cc2
-rw-r--r--gnuradio-runtime/lib/logger.cc2
-rw-r--r--gr-audio/lib/osx/circular_buffer.h8
-rw-r--r--gr-blocks/lib/annotator_raw_impl.cc2
-rw-r--r--gr-blocks/lib/file_meta_sink_impl.cc8
-rw-r--r--gr-blocks/lib/file_meta_source_impl.cc12
-rw-r--r--gr-blocks/lib/message_debug_impl.cc2
-rw-r--r--gr-digital/lib/mpsk_snr_est_cc_impl.cc8
-rw-r--r--gr-digital/lib/pfb_clock_sync_ccf_impl.cc2
-rw-r--r--gr-digital/lib/pfb_clock_sync_fff_impl.cc2
-rw-r--r--gr-digital/lib/probe_mpsk_snr_est_c_impl.cc12
-rw-r--r--gr-fec/lib/cc_decoder_impl.cc10
-rw-r--r--gr-fec/lib/fec_mtrx_impl.cc6
-rw-r--r--gr-fft/lib/fft_vcc_fftw.cc2
-rw-r--r--gr-fft/lib/fft_vfc_fftw.cc2
-rw-r--r--gr-filter/include/gnuradio/filter/single_pole_iir.h4
-rw-r--r--gr-filter/lib/interp_fir_filter_impl.cc6
-rw-r--r--gr-filter/lib/mmse_fir_interpolator_cc.cc2
-rw-r--r--gr-filter/lib/mmse_fir_interpolator_ff.cc2
-rw-r--r--gr-filter/lib/mmse_interp_differentiator_cc.cc2
-rw-r--r--gr-filter/lib/mmse_interp_differentiator_ff.cc2
-rw-r--r--gr-filter/lib/pfb_arb_resampler.cc6
-rw-r--r--gr-filter/lib/pfb_channelizer_ccf_impl.cc2
-rw-r--r--gr-filter/lib/pfb_synthesizer_ccf_impl.cc4
-rw-r--r--gr-qtgui/include/gnuradio/qtgui/form_menus.h36
-rw-r--r--gr-qtgui/lib/DisplayPlot.cc2
-rw-r--r--gr-qtgui/lib/TimeDomainDisplayPlot.cc4
-rw-r--r--gr-qtgui/lib/TimeRasterDisplayPlot.cc4
-rw-r--r--gr-qtgui/lib/numberdisplayform.cc8
-rw-r--r--gr-qtgui/lib/sink_c_impl.cc2
-rw-r--r--gr-qtgui/lib/time_raster_sink_b_impl.cc4
-rw-r--r--gr-qtgui/lib/time_raster_sink_f_impl.cc4
-rw-r--r--gr-qtgui/lib/timedisplayform.cc2
-rw-r--r--gr-trellis/lib/fsm.cc10
-rw-r--r--gr-trellis/lib/interleaver.cc4
-rw-r--r--gr-trellis/lib/siso_f_impl.cc2
-rw-r--r--gr-vocoder/lib/cvsd_decode_bs_impl.cc4
-rw-r--r--gr-vocoder/lib/cvsd_encode_sb_impl.cc4
40 files changed, 104 insertions, 104 deletions
diff --git a/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h b/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h
index 83c57967cc..8ab2548cee 100644
--- a/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h
+++ b/gnuradio-runtime/include/gnuradio/rpcregisterhelpers.h
@@ -61,7 +61,7 @@ public:
(void)which_port;
(void)msg;
throw std::runtime_error(
- "rpcextractor_base: no post defined for this data type.\n");
+ "rpcextractor_base: no post defined for this data type.");
}
protected:
@@ -81,7 +81,7 @@ public:
(void)which_port;
(void)msg;
throw std::runtime_error(
- "rpcextractor_base: no post defined for this data type.\n");
+ "rpcextractor_base: no post defined for this data type.");
}
protected:
@@ -1543,7 +1543,7 @@ public:
{
throw std::runtime_error(
"ERROR: rpcbasic_register_variable_rw called with no args. if this happens "
- "someone used rpcbasic_register_variable_rw incorrectly.\n");
+ "someone used rpcbasic_register_variable_rw incorrectly.");
};
void set(Tfrom _variable)
diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc
index 5914283908..b3a9bcc4dc 100644
--- a/gnuradio-runtime/lib/block.cc
+++ b/gnuradio-runtime/lib/block.cc
@@ -287,7 +287,7 @@ void block::set_max_noutput_items(int m)
{
if (m <= 0)
throw std::runtime_error("block::set_max_noutput_items: value for "
- "max_noutput_items must be greater than 0.\n");
+ "max_noutput_items must be greater than 0.");
d_max_noutput_items = m;
d_max_noutput_items_set = true;
diff --git a/gnuradio-runtime/lib/controlport/rpcmanager.cc b/gnuradio-runtime/lib/controlport/rpcmanager.cc
index aa9fc08cde..423bf44d3d 100644
--- a/gnuradio-runtime/lib/controlport/rpcmanager.cc
+++ b/gnuradio-runtime/lib/controlport/rpcmanager.cc
@@ -54,6 +54,6 @@ void rpcmanager::register_booter(rpcserver_booter_base* booter)
booter_registered = true;
} else {
throw std::runtime_error("rpcmanager: Aggregator not in use, and a rpc booter is "
- "already registered\n");
+ "already registered");
}
}
diff --git a/gnuradio-runtime/lib/logger.cc b/gnuradio-runtime/lib/logger.cc
index ce2772cadf..6bcac914ed 100644
--- a/gnuradio-runtime/lib/logger.cc
+++ b/gnuradio-runtime/lib/logger.cc
@@ -194,7 +194,7 @@ void logger_set_level(logger_ptr logger, const std::string& level)
else if (nocase == "emerg")
logger_set_level(logger, log4cpp::Priority::EMERG);
else
- throw std::runtime_error("logger_set_level: Bad level type.\n");
+ throw std::runtime_error("logger_set_level: Bad level type.");
}
void logger_set_level(logger_ptr logger, log4cpp::Priority::Value level)
diff --git a/gr-audio/lib/osx/circular_buffer.h b/gr-audio/lib/osx/circular_buffer.h
index c18f2464cb..3b3ed8d9c8 100644
--- a/gr-audio/lib/osx/circular_buffer.h
+++ b/gr-audio/lib/osx/circular_buffer.h
@@ -82,7 +82,7 @@ public:
{
if (bufLen_I == 0)
throw std::runtime_error("circular_buffer(): "
- "Number of items to buffer must be > 0.\n");
+ "Number of items to buffer must be > 0.");
d_bufLen_I = bufLen_I;
d_buffer = (T*)new T[d_bufLen_I];
d_doWriteBlock = doWriteBlock;
@@ -176,7 +176,7 @@ public:
return (0);
if (!buf)
throw std::runtime_error("circular_buffer::enqueue(): "
- "input buffer is NULL.\n");
+ "input buffer is NULL.");
gr::thread::scoped_lock l(*d_internal);
if (d_doAbort) {
return (2);
@@ -253,10 +253,10 @@ public:
<< ", #av_rd = " << d_n_avail_read_I << std::endl);
if (!bufLen_I)
throw std::runtime_error("circular_buffer::dequeue(): "
- "input bufLen pointer is NULL.\n");
+ "input bufLen pointer is NULL.");
if (!buf)
throw std::runtime_error("circular_buffer::dequeue(): "
- "input buffer pointer is NULL.\n");
+ "input buffer pointer is NULL.");
size_t l_bufLen_I = *bufLen_I;
if (l_bufLen_I == 0)
return (0);
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];
diff --git a/gr-digital/lib/mpsk_snr_est_cc_impl.cc b/gr-digital/lib/mpsk_snr_est_cc_impl.cc
index de0ab57eb9..f31ae3f6e9 100644
--- a/gr-digital/lib/mpsk_snr_est_cc_impl.cc
+++ b/gr-digital/lib/mpsk_snr_est_cc_impl.cc
@@ -113,7 +113,7 @@ double mpsk_snr_est_cc_impl::snr()
if (d_snr_est)
return d_snr_est->snr();
else
- throw std::runtime_error("mpsk_snr_est_cc_impl:: No SNR estimator defined.\n");
+ throw std::runtime_error("mpsk_snr_est_cc_impl:: No SNR estimator defined.");
}
snr_est_type_t mpsk_snr_est_cc_impl::type() const { return d_type; }
@@ -143,7 +143,7 @@ void mpsk_snr_est_cc_impl::set_type(snr_est_type_t t)
d_snr_est = new mpsk_snr_est_svr(d_alpha);
break;
default:
- throw std::invalid_argument("mpsk_snr_est_cc_impl: unknown type specified.\n");
+ throw std::invalid_argument("mpsk_snr_est_cc_impl: unknown type specified.");
}
}
@@ -153,7 +153,7 @@ void mpsk_snr_est_cc_impl::set_tag_nsample(int n)
d_nsamples = n;
d_count = 0; // reset state
} else
- throw std::invalid_argument("mpsk_snr_est_cc_impl: tag_nsamples can't be <= 0\n");
+ throw std::invalid_argument("mpsk_snr_est_cc_impl: tag_nsamples can't be <= 0");
}
void mpsk_snr_est_cc_impl::set_alpha(double alpha)
@@ -163,7 +163,7 @@ void mpsk_snr_est_cc_impl::set_alpha(double alpha)
if (d_snr_est)
d_snr_est->set_alpha(d_alpha);
} else
- throw std::invalid_argument("mpsk_snr_est_cc_impl: alpha must be in [0,1]\n");
+ throw std::invalid_argument("mpsk_snr_est_cc_impl: alpha must be in [0,1]");
}
} /* namespace digital */
diff --git a/gr-digital/lib/pfb_clock_sync_ccf_impl.cc b/gr-digital/lib/pfb_clock_sync_ccf_impl.cc
index 103fac6850..2485560aa2 100644
--- a/gr-digital/lib/pfb_clock_sync_ccf_impl.cc
+++ b/gr-digital/lib/pfb_clock_sync_ccf_impl.cc
@@ -69,7 +69,7 @@ pfb_clock_sync_ccf_impl::pfb_clock_sync_ccf_impl(double sps,
d_out_idx(0)
{
if (taps.empty())
- throw std::runtime_error("pfb_clock_sync_ccf: please specify a filter.\n");
+ throw std::runtime_error("pfb_clock_sync_ccf: please specify a filter.");
// Let scheduler adjust our relative_rate.
// enable_update_rate(true);
diff --git a/gr-digital/lib/pfb_clock_sync_fff_impl.cc b/gr-digital/lib/pfb_clock_sync_fff_impl.cc
index 75973b84a0..aaec9aa56b 100644
--- a/gr-digital/lib/pfb_clock_sync_fff_impl.cc
+++ b/gr-digital/lib/pfb_clock_sync_fff_impl.cc
@@ -66,7 +66,7 @@ pfb_clock_sync_fff_impl::pfb_clock_sync_fff_impl(double sps,
d_out_idx(0)
{
if (taps.empty())
- throw std::runtime_error("pfb_clock_sync_fff: please specify a filter.\n");
+ throw std::runtime_error("pfb_clock_sync_fff: please specify a filter.");
// Let scheduler adjust our relative_rate.
enable_update_rate(true);
diff --git a/gr-digital/lib/probe_mpsk_snr_est_c_impl.cc b/gr-digital/lib/probe_mpsk_snr_est_c_impl.cc
index f05dfa1c5a..7b023ba4d3 100644
--- a/gr-digital/lib/probe_mpsk_snr_est_c_impl.cc
+++ b/gr-digital/lib/probe_mpsk_snr_est_c_impl.cc
@@ -97,7 +97,7 @@ double probe_mpsk_snr_est_c_impl::snr()
return d_snr_est->snr();
else
throw std::runtime_error(
- "probe_mpsk_snr_est_c_impl:: No SNR estimator defined.\n");
+ "probe_mpsk_snr_est_c_impl:: No SNR estimator defined.");
}
double probe_mpsk_snr_est_c_impl::signal()
@@ -106,7 +106,7 @@ double probe_mpsk_snr_est_c_impl::signal()
return d_snr_est->signal();
else
throw std::runtime_error(
- "probe_mpsk_snr_est_c_impl:: No SNR estimator defined.\n");
+ "probe_mpsk_snr_est_c_impl:: No SNR estimator defined.");
}
@@ -116,7 +116,7 @@ double probe_mpsk_snr_est_c_impl::noise()
return d_snr_est->noise();
else
throw std::runtime_error(
- "probe_mpsk_snr_est_c_impl:: No SNR estimator defined.\n");
+ "probe_mpsk_snr_est_c_impl:: No SNR estimator defined.");
}
snr_est_type_t probe_mpsk_snr_est_c_impl::type() const { return d_type; }
@@ -147,7 +147,7 @@ void probe_mpsk_snr_est_c_impl::set_type(snr_est_type_t t)
break;
default:
throw std::invalid_argument(
- "probe_mpsk_snr_est_c_impl: unknown type specified.\n");
+ "probe_mpsk_snr_est_c_impl: unknown type specified.");
}
}
@@ -158,7 +158,7 @@ void probe_mpsk_snr_est_c_impl::set_msg_nsample(int n)
d_count = 0; // reset state
} else
throw std::invalid_argument(
- "probe_mpsk_snr_est_c_impl: msg_nsamples can't be <= 0\n");
+ "probe_mpsk_snr_est_c_impl: msg_nsamples can't be <= 0");
}
void probe_mpsk_snr_est_c_impl::set_alpha(double alpha)
@@ -169,7 +169,7 @@ void probe_mpsk_snr_est_c_impl::set_alpha(double alpha)
d_snr_est->set_alpha(d_alpha);
} else
throw std::invalid_argument(
- "probe_mpsk_snr_est_c_impl: alpha must be in [0,1]\n");
+ "probe_mpsk_snr_est_c_impl: alpha must be in [0,1]");
}
} /* namespace digital */
diff --git a/gr-fec/lib/cc_decoder_impl.cc b/gr-fec/lib/cc_decoder_impl.cc
index e60131c7a1..d8b02366af 100644
--- a/gr-fec/lib/cc_decoder_impl.cc
+++ b/gr-fec/lib/cc_decoder_impl.cc
@@ -94,7 +94,7 @@ cc_decoder_impl::cc_decoder_impl(int frame_size,
d_veclen * d_rate * sizeof(unsigned char), volk_get_alignment());
d_managed_in_size = d_veclen * d_rate;
if (d_managed_in == NULL) {
- throw std::runtime_error("cc_decoder: bad alloc for d_managed_in\n");
+ throw std::runtime_error("cc_decoder: bad alloc for d_managed_in");
}
break;
@@ -121,7 +121,7 @@ cc_decoder_impl::cc_decoder_impl(int frame_size,
d_vp->metrics = (unsigned char*)volk_malloc(2 * sizeof(unsigned char) * d_numstates,
volk_get_alignment());
if (d_vp->metrics == NULL) {
- throw std::runtime_error("bad alloc for d_vp->metrics!\n");
+ throw std::runtime_error("bad alloc for d_vp->metrics!");
}
d_vp->metrics1.t = d_vp->metrics;
@@ -130,13 +130,13 @@ cc_decoder_impl::cc_decoder_impl(int frame_size,
d_vp->decisions = (unsigned char*)volk_malloc(
sizeof(unsigned char) * d_veclen * d_decision_t_size, volk_get_alignment());
if (d_vp->decisions == NULL) {
- throw std::runtime_error("bad alloc for d_vp->decisions!\n");
+ throw std::runtime_error("bad alloc for d_vp->decisions!");
}
Branchtab = (unsigned char*)volk_malloc(
sizeof(unsigned char) * d_numstates / 2 * rate, volk_get_alignment());
if (Branchtab == NULL) {
- throw std::runtime_error("bad alloc for d_vp->decisions!\n");
+ throw std::runtime_error("bad alloc for d_vp->decisions!");
}
create_viterbi();
@@ -409,7 +409,7 @@ bool cc_decoder_impl::set_frame_size(unsigned int frame_size)
d_veclen = d_frame_size + (6 * (d_k - 1));
if (d_veclen * d_rate > d_managed_in_size) {
throw std::runtime_error(
- "cc_decoder: attempt to resize beyond d_managed_in buffer size!\n");
+ "cc_decoder: attempt to resize beyond d_managed_in buffer size!");
}
break;
diff --git a/gr-fec/lib/fec_mtrx_impl.cc b/gr-fec/lib/fec_mtrx_impl.cc
index 302928665f..e84645f474 100644
--- a/gr-fec/lib/fec_mtrx_impl.cc
+++ b/gr-fec/lib/fec_mtrx_impl.cc
@@ -397,7 +397,7 @@ gsl_matrix* fec_mtrx_impl::calc_inverse_mod2(const gsl_matrix* original_matrix)
if (status) {
// Inverse not found by GSL functions.
- throw "Error in calc_inverse_mod2(): inverse not found.\n";
+ throw "Error in calc_inverse_mod2(): inverse not found.";
}
// Find determinant
@@ -422,7 +422,7 @@ gsl_matrix* fec_mtrx_impl::calc_inverse_mod2(const gsl_matrix* original_matrix)
int max_value = gsl_matrix_max(matrix_inverse);
if (!max_value) {
- throw "Error in calc_inverse_mod2(): The matrix inverse found is all zeros.\n";
+ throw "Error in calc_inverse_mod2(): The matrix inverse found is all zeros.";
}
// Verify that the inverse was found by taking matrix
@@ -439,7 +439,7 @@ gsl_matrix* fec_mtrx_impl::calc_inverse_mod2(const gsl_matrix* original_matrix)
double test_if_not_equal = gsl_matrix_max(identity);
if (test_if_not_equal > 0) {
- throw "Error in calc_inverse_mod2(): The matrix inverse found is not valid.\n";
+ throw "Error in calc_inverse_mod2(): The matrix inverse found is not valid.";
}
return matrix_inverse;
diff --git a/gr-fft/lib/fft_vcc_fftw.cc b/gr-fft/lib/fft_vcc_fftw.cc
index 131e5f16e1..0d9b7d1c6b 100644
--- a/gr-fft/lib/fft_vcc_fftw.cc
+++ b/gr-fft/lib/fft_vcc_fftw.cc
@@ -56,7 +56,7 @@ fft_vcc_fftw::fft_vcc_fftw(int fft_size,
{
d_fft = new fft_complex(d_fft_size, forward, nthreads);
if (!set_window(window))
- throw std::runtime_error("fft_vcc: window not the same length as fft_size\n");
+ throw std::runtime_error("fft_vcc: window not the same length as fft_size");
}
fft_vcc_fftw::~fft_vcc_fftw() { delete d_fft; }
diff --git a/gr-fft/lib/fft_vfc_fftw.cc b/gr-fft/lib/fft_vfc_fftw.cc
index dbbce05151..b2f2ebc4d7 100644
--- a/gr-fft/lib/fft_vfc_fftw.cc
+++ b/gr-fft/lib/fft_vfc_fftw.cc
@@ -51,7 +51,7 @@ fft_vfc_fftw::fft_vfc_fftw(int fft_size,
{
d_fft = new fft_complex(d_fft_size, d_forward, nthreads);
if (!set_window(window))
- throw std::runtime_error("fft_vfc: window not the same length as fft_size\n");
+ throw std::runtime_error("fft_vfc: window not the same length as fft_size");
}
fft_vfc_fftw::~fft_vfc_fftw() { delete d_fft; }
diff --git a/gr-filter/include/gnuradio/filter/single_pole_iir.h b/gr-filter/include/gnuradio/filter/single_pole_iir.h
index 71ce317939..e7b522a115 100644
--- a/gr-filter/include/gnuradio/filter/single_pole_iir.h
+++ b/gr-filter/include/gnuradio/filter/single_pole_iir.h
@@ -66,7 +66,7 @@ public:
void set_taps(tap_type alpha)
{
if (alpha < 0 || alpha > 1)
- throw std::out_of_range("Alpha must be in [0, 1]\n");
+ throw std::out_of_range("Alpha must be in [0, 1]");
d_alpha = alpha;
d_one_minus_alpha = 1.0 - alpha;
@@ -146,7 +146,7 @@ public:
void set_taps(double alpha)
{
if (alpha < 0 || alpha > 1)
- throw std::out_of_range("Alpha must be in [0, 1]\n");
+ throw std::out_of_range("Alpha must be in [0, 1]");
d_alpha = alpha;
d_one_minus_alpha = 1.0 - alpha;
diff --git a/gr-filter/lib/interp_fir_filter_impl.cc b/gr-filter/lib/interp_fir_filter_impl.cc
index 666998952d..eefe03f4ae 100644
--- a/gr-filter/lib/interp_fir_filter_impl.cc
+++ b/gr-filter/lib/interp_fir_filter_impl.cc
@@ -52,11 +52,11 @@ interp_fir_filter_impl<IN_T, OUT_T, TAP_T>::interp_fir_filter_impl(
d_firs(interpolation)
{
if (interpolation == 0) {
- throw std::out_of_range("interp_fir_filter_impl: interpolation must be > 0\n");
+ throw std::out_of_range("interp_fir_filter_impl: interpolation must be > 0");
}
if (taps.empty()) {
- throw std::runtime_error("interp_fir_filter_impl: no filter taps provided.\n");
+ throw std::runtime_error("interp_fir_filter_impl: no filter taps provided.");
}
std::vector<TAP_T> dummy_taps;
@@ -94,7 +94,7 @@ void interp_fir_filter_impl<IN_T, OUT_T, TAP_T>::set_taps(const std::vector<TAP_
if (d_new_taps.size() % this->interpolation() != 0) {
throw std::runtime_error(
- "interp_fir_filter_impl: error setting interpolator taps.\n");
+ "interp_fir_filter_impl: error setting interpolator taps.");
}
}
diff --git a/gr-filter/lib/mmse_fir_interpolator_cc.cc b/gr-filter/lib/mmse_fir_interpolator_cc.cc
index 9c393a433b..391860cdcc 100644
--- a/gr-filter/lib/mmse_fir_interpolator_cc.cc
+++ b/gr-filter/lib/mmse_fir_interpolator_cc.cc
@@ -56,7 +56,7 @@ gr_complex mmse_fir_interpolator_cc::interpolate(const gr_complex input[], float
int imu = (int)rint(mu * NSTEPS);
if ((imu < 0) || (imu > NSTEPS)) {
- throw std::runtime_error("mmse_fir_interpolator_cc: imu out of bounds.\n");
+ throw std::runtime_error("mmse_fir_interpolator_cc: imu out of bounds.");
}
gr_complex r = filters[imu]->filter(input);
diff --git a/gr-filter/lib/mmse_fir_interpolator_ff.cc b/gr-filter/lib/mmse_fir_interpolator_ff.cc
index b1e3ec43e7..c046119651 100644
--- a/gr-filter/lib/mmse_fir_interpolator_ff.cc
+++ b/gr-filter/lib/mmse_fir_interpolator_ff.cc
@@ -56,7 +56,7 @@ float mmse_fir_interpolator_ff::interpolate(const float input[], float mu) const
int imu = (int)rint(mu * NSTEPS);
if ((imu < 0) || (imu > NSTEPS)) {
- throw std::runtime_error("mmse_fir_interpolator_ff: imu out of bounds.\n");
+ throw std::runtime_error("mmse_fir_interpolator_ff: imu out of bounds.");
}
float r = filters[imu]->filter(input);
diff --git a/gr-filter/lib/mmse_interp_differentiator_cc.cc b/gr-filter/lib/mmse_interp_differentiator_cc.cc
index 3d81b5253f..b25dd8b6f9 100644
--- a/gr-filter/lib/mmse_interp_differentiator_cc.cc
+++ b/gr-filter/lib/mmse_interp_differentiator_cc.cc
@@ -57,7 +57,7 @@ gr_complex mmse_interp_differentiator_cc::differentiate(const gr_complex input[]
int imu = (int)rint(mu * DNSTEPS);
if ((imu < 0) || (imu > DNSTEPS)) {
- throw std::runtime_error("mmse_interp_differentiator_cc: imu out of bounds.\n");
+ throw std::runtime_error("mmse_interp_differentiator_cc: imu out of bounds.");
}
gr_complex r = filters[imu]->filter(input);
diff --git a/gr-filter/lib/mmse_interp_differentiator_ff.cc b/gr-filter/lib/mmse_interp_differentiator_ff.cc
index 431eff630c..52862ff9a6 100644
--- a/gr-filter/lib/mmse_interp_differentiator_ff.cc
+++ b/gr-filter/lib/mmse_interp_differentiator_ff.cc
@@ -56,7 +56,7 @@ float mmse_interp_differentiator_ff::differentiate(const float input[], float mu
int imu = (int)rint(mu * DNSTEPS);
if ((imu < 0) || (imu > DNSTEPS)) {
- throw std::runtime_error("mmse_interp_differentiator_ff: imu out of bounds.\n");
+ throw std::runtime_error("mmse_interp_differentiator_ff: imu out of bounds.");
}
float r = filters[imu]->filter(input);
diff --git a/gr-filter/lib/pfb_arb_resampler.cc b/gr-filter/lib/pfb_arb_resampler.cc
index 8332db5490..dfebb1fa1b 100644
--- a/gr-filter/lib/pfb_arb_resampler.cc
+++ b/gr-filter/lib/pfb_arb_resampler.cc
@@ -176,7 +176,7 @@ void pfb_arb_resampler_ccf::set_phase(float ph)
{
if ((ph < 0) || (ph >= 2.0 * GR_M_PI)) {
throw std::runtime_error(
- "pfb_arb_resampler_ccf: set_phase value out of bounds [0, 2pi).\n");
+ "pfb_arb_resampler_ccf: set_phase value out of bounds [0, 2pi).");
}
float ph_diff = 2.0 * GR_M_PI / (float)d_filters.size();
@@ -377,7 +377,7 @@ void pfb_arb_resampler_ccc::set_phase(float ph)
{
if ((ph < 0) || (ph >= 2.0 * GR_M_PI)) {
throw std::runtime_error(
- "pfb_arb_resampler_ccc: set_phase value out of bounds [0, 2pi).\n");
+ "pfb_arb_resampler_ccc: set_phase value out of bounds [0, 2pi).");
}
float ph_diff = 2.0 * GR_M_PI / (float)d_filters.size();
@@ -575,7 +575,7 @@ void pfb_arb_resampler_fff::set_phase(float ph)
{
if ((ph < 0) || (ph >= 2.0 * GR_M_PI)) {
throw std::runtime_error(
- "pfb_arb_resampler_fff: set_phase value out of bounds [0, 2pi).\n");
+ "pfb_arb_resampler_fff: set_phase value out of bounds [0, 2pi).");
}
float ph_diff = 2.0 * GR_M_PI / (float)d_filters.size();
diff --git a/gr-filter/lib/pfb_channelizer_ccf_impl.cc b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
index 2fbd83cd19..ecdeee3e8f 100644
--- a/gr-filter/lib/pfb_channelizer_ccf_impl.cc
+++ b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
@@ -129,7 +129,7 @@ void pfb_channelizer_ccf_impl::set_channel_map(const std::vector<int>& map)
unsigned int max = (unsigned int)*std::max_element(map.begin(), map.end());
if (max >= d_nfilts) {
throw std::invalid_argument(
- "pfb_channelizer_ccf_impl::set_channel_map: map range out of bounds.\n");
+ "pfb_channelizer_ccf_impl::set_channel_map: map range out of bounds.");
}
d_channel_map = map;
}
diff --git a/gr-filter/lib/pfb_synthesizer_ccf_impl.cc b/gr-filter/lib/pfb_synthesizer_ccf_impl.cc
index 8c964d84e6..206b21dd8c 100644
--- a/gr-filter/lib/pfb_synthesizer_ccf_impl.cc
+++ b/gr-filter/lib/pfb_synthesizer_ccf_impl.cc
@@ -54,7 +54,7 @@ pfb_synthesizer_ccf_impl::pfb_synthesizer_ccf_impl(unsigned int numchans,
d_twox = (twox ? 2 : 1);
if (d_numchans % d_twox != 0) {
throw std::invalid_argument("pfb_synthesizer_ccf_impl: number of channels must "
- "be even for 2x oversampling.\n");
+ "be even for 2x oversampling.");
}
d_filters = std::vector<kernel::fir_filter_with_buffer_ccf*>(d_twox * d_numchans);
@@ -219,7 +219,7 @@ void pfb_synthesizer_ccf_impl::set_channel_map(const std::vector<int>& map)
int min = *std::min_element(map.begin(), map.end());
if ((max >= static_cast<int>(d_twox * d_numchans)) || (min < 0)) {
throw std::invalid_argument(
- "pfb_synthesizer_ccf_impl::set_channel_map: map range out of bounds.\n");
+ "pfb_synthesizer_ccf_impl::set_channel_map: map range out of bounds.");
}
d_channel_map = map;
diff --git a/gr-qtgui/include/gnuradio/qtgui/form_menus.h b/gr-qtgui/include/gnuradio/qtgui/form_menus.h
index 226adb5142..0e1854762c 100644
--- a/gr-qtgui/include/gnuradio/qtgui/form_menus.h
+++ b/gr-qtgui/include/gnuradio/qtgui/form_menus.h
@@ -92,7 +92,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("LineColorMenu::getAction: which out of range.\n");
+ throw std::runtime_error("LineColorMenu::getAction: which out of range.");
}
signals:
@@ -172,7 +172,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("LineWidthMenu::getAction: which out of range.\n");
+ throw std::runtime_error("LineWidthMenu::getAction: which out of range.");
}
signals:
@@ -242,7 +242,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("LineStyleMenu::getAction: which out of range.\n");
+ throw std::runtime_error("LineStyleMenu::getAction: which out of range.");
}
signals:
@@ -326,7 +326,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("LineMarkerMenu::getAction: which out of range.\n");
+ throw std::runtime_error("LineMarkerMenu::getAction: which out of range.");
}
signals:
@@ -399,7 +399,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("MarkerAlphaMenu::getAction: which out of range.\n");
+ throw std::runtime_error("MarkerAlphaMenu::getAction: which out of range.");
}
signals:
@@ -655,7 +655,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("FFTSizeMenu::getAction: which out of range.\n");
+ throw std::runtime_error("FFTSizeMenu::getAction: which out of range.");
}
QAction* getActionFromSize(int size)
@@ -668,7 +668,7 @@ public:
return d_act[static_cast<int>(which)];
else
throw std::runtime_error(
- "FFTSizeMenu::getActionFromString: which out of range.\n");
+ "FFTSizeMenu::getActionFromString: which out of range.");
}
// Or a non-predefined value, return Other
else {
@@ -763,7 +763,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("FFTSizeMenu::getAction: which out of range.\n");
+ throw std::runtime_error("FFTSizeMenu::getAction: which out of range.");
}
QAction* getActionFromAvg(float avg)
@@ -873,7 +873,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("FFTWindowMenu::getAction: which out of range.\n");
+ throw std::runtime_error("FFTWindowMenu::getAction: which out of range.");
}
QAction* getActionFromWindow(gr::filter::firdes::win_type type)
@@ -1035,7 +1035,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("ColorMapMenu::getAction: which out of range.\n");
+ throw std::runtime_error("ColorMapMenu::getAction: which out of range.");
}
signals:
@@ -1119,7 +1119,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("TriggerModeMenu::getAction: which out of range.\n");
+ throw std::runtime_error("TriggerModeMenu::getAction: which out of range.");
}
QAction* getAction(gr::qtgui::trigger_mode mode)
@@ -1139,7 +1139,7 @@ public:
break;
default:
throw std::runtime_error(
- "TriggerModeMenu::getAction: unknown trigger mode.\n");
+ "TriggerModeMenu::getAction: unknown trigger mode.");
}
}
@@ -1194,7 +1194,7 @@ public:
return d_act[which];
else
throw std::runtime_error(
- "TriggerSlopeMenu::getAction: which out of range.\n");
+ "TriggerSlopeMenu::getAction: which out of range.");
}
QAction* getAction(gr::qtgui::trigger_slope slope)
@@ -1208,7 +1208,7 @@ public:
break;
default:
throw std::runtime_error(
- "TriggerSlopeMenu::getAction: unknown trigger slope.\n");
+ "TriggerSlopeMenu::getAction: unknown trigger slope.");
}
}
@@ -1256,7 +1256,7 @@ public:
return d_act[which];
else
throw std::runtime_error(
- "TriggerChannelMenu::getAction: which out of range.\n");
+ "TriggerChannelMenu::getAction: which out of range.");
}
@@ -1315,7 +1315,7 @@ public:
return d_act[which];
else
throw std::runtime_error(
- "NumberLayoutMenu::getAction: which out of range.\n");
+ "NumberLayoutMenu::getAction: which out of range.");
}
QAction* getAction(gr::qtgui::graph_t layout)
@@ -1332,7 +1332,7 @@ public:
break;
default:
throw std::runtime_error(
- "NumberLayoutMenu::getAction: unknown layout type.\n");
+ "NumberLayoutMenu::getAction: unknown layout type.");
}
}
@@ -1398,7 +1398,7 @@ public:
if (which < static_cast<unsigned int>(d_act.size()))
return d_act[which];
else
- throw std::runtime_error("ColorMapMenu::getAction: which out of range.\n");
+ throw std::runtime_error("ColorMapMenu::getAction: which out of range.");
}
signals:
diff --git a/gr-qtgui/lib/DisplayPlot.cc b/gr-qtgui/lib/DisplayPlot.cc
index 2989b1aaf8..f2cbf34315 100644
--- a/gr-qtgui/lib/DisplayPlot.cc
+++ b/gr-qtgui/lib/DisplayPlot.cc
@@ -414,7 +414,7 @@ void DisplayPlot::legendEntryChecked(const QVariant& plotItem, bool on, int inde
{
#if QWT_VERSION < 0x060100
std::runtime_error("DisplayPlot::legendEntryChecked with QVariant not enabled in "
- "this version of QWT.\n");
+ "this version of QWT.");
#else
QwtPlotItem* p = infoToItem(plotItem);
legendEntryChecked(p, on);
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
index 4b60871f0a..f1272991bb 100644
--- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc
+++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc
@@ -427,7 +427,7 @@ void TimeDomainDisplayPlot::legendEntryChecked(const QVariant& plotItem,
{
#if QWT_VERSION < 0x060100
std::runtime_error("TimeDomainDisplayPlot::legendEntryChecked with QVariant not "
- "enabled in this version of QWT.\n");
+ "enabled in this version of QWT.");
#else
QwtPlotItem* p = infoToItem(plotItem);
legendEntryChecked(p, on);
@@ -567,7 +567,7 @@ void TimeDomainDisplayPlot::enableTagMarker(unsigned int which, bool en)
d_tag_markers_en[which] = en;
else
throw std::runtime_error(
- "TimeDomainDisplayPlot: enabled tag marker does not exist.\n");
+ "TimeDomainDisplayPlot: enabled tag marker does not exist.");
}
const QColor TimeDomainDisplayPlot::getTagTextColor() { return d_tag_text_color; }
diff --git a/gr-qtgui/lib/TimeRasterDisplayPlot.cc b/gr-qtgui/lib/TimeRasterDisplayPlot.cc
index 67e9fac6ee..1a26529cdf 100644
--- a/gr-qtgui/lib/TimeRasterDisplayPlot.cc
+++ b/gr-qtgui/lib/TimeRasterDisplayPlot.cc
@@ -428,7 +428,7 @@ int TimeRasterDisplayPlot::getIntensityColorMapType(unsigned int which) const
{
if (which >= d_color_map_type.size())
throw std::runtime_error(
- "TimerasterDisplayPlot::GetIntesityColorMap: invalid which.\n");
+ "TimerasterDisplayPlot::GetIntesityColorMap: invalid which.");
return d_color_map_type[which];
}
@@ -455,7 +455,7 @@ void TimeRasterDisplayPlot::setIntensityColorMapType(const unsigned int which,
{
if (which >= d_color_map_type.size())
throw std::runtime_error(
- "TimerasterDisplayPlot::setIntesityColorMap: invalid which.\n");
+ "TimerasterDisplayPlot::setIntesityColorMap: invalid which.");
if ((d_color_map_type[which] != newType) ||
((newType == INTENSITY_COLOR_MAP_TYPE_USER_DEFINED) &&
diff --git a/gr-qtgui/lib/numberdisplayform.cc b/gr-qtgui/lib/numberdisplayform.cc
index 9c027671bc..658d54c670 100644
--- a/gr-qtgui/lib/numberdisplayform.cc
+++ b/gr-qtgui/lib/numberdisplayform.cc
@@ -432,7 +432,7 @@ void NumberDisplayForm::setTitle(const std::string& title)
std::string NumberDisplayForm::unit(unsigned int which) const
{
if (static_cast<size_t>(which) >= d_unit.size())
- throw std::runtime_error("NumberDisplayForm::units: invalid 'which'.\n");
+ throw std::runtime_error("NumberDisplayForm::units: invalid 'which'.");
return d_unit[which];
}
@@ -440,7 +440,7 @@ std::string NumberDisplayForm::unit(unsigned int which) const
void NumberDisplayForm::setUnit(unsigned int which, const std::string& unit)
{
if (static_cast<size_t>(which) >= d_unit.size())
- throw std::runtime_error("NumberDisplayForm::setUnits: invalid 'which'.\n");
+ throw std::runtime_error("NumberDisplayForm::setUnits: invalid 'which'.");
d_unit[which] = unit;
}
@@ -448,7 +448,7 @@ void NumberDisplayForm::setUnit(unsigned int which, const std::string& unit)
float NumberDisplayForm::factor(unsigned int which) const
{
if (static_cast<size_t>(which) >= d_factor.size())
- throw std::runtime_error("NumberDisplayForm::factor: invalid 'which'.\n");
+ throw std::runtime_error("NumberDisplayForm::factor: invalid 'which'.");
return d_factor[which];
}
@@ -456,7 +456,7 @@ float NumberDisplayForm::factor(unsigned int which) const
void NumberDisplayForm::setFactor(unsigned int which, float factor)
{
if (static_cast<size_t>(which) >= d_factor.size())
- throw std::runtime_error("NumberDisplayForm::setFactor: invalid 'which'.\n");
+ throw std::runtime_error("NumberDisplayForm::setFactor: invalid 'which'.");
d_factor[which] = factor;
}
diff --git a/gr-qtgui/lib/sink_c_impl.cc b/gr-qtgui/lib/sink_c_impl.cc
index d3feb9d16c..2c5fea9f6f 100644
--- a/gr-qtgui/lib/sink_c_impl.cc
+++ b/gr-qtgui/lib/sink_c_impl.cc
@@ -151,7 +151,7 @@ void sink_c_impl::initialize()
check_set_qss(d_qApplication);
if (d_center_freq < 0) {
- throw std::runtime_error("sink_c_impl: Received bad center frequency.\n");
+ throw std::runtime_error("sink_c_impl: Received bad center frequency.");
}
uint64_t maxBufferSize = 32768;
diff --git a/gr-qtgui/lib/time_raster_sink_b_impl.cc b/gr-qtgui/lib/time_raster_sink_b_impl.cc
index 045c216b00..383fc9effd 100644
--- a/gr-qtgui/lib/time_raster_sink_b_impl.cc
+++ b/gr-qtgui/lib/time_raster_sink_b_impl.cc
@@ -311,7 +311,7 @@ void time_raster_sink_b_impl::set_multiplier(const std::vector<float>& mult)
}
} else {
throw std::runtime_error(
- "time_raster_sink_b_impl::set_multiplier incorrect dimensions.\n");
+ "time_raster_sink_b_impl::set_multiplier incorrect dimensions.");
}
}
@@ -331,7 +331,7 @@ void time_raster_sink_b_impl::set_offset(const std::vector<float>& offset)
}
} else {
throw std::runtime_error(
- "time_raster_sink_b_impl::set_offset incorrect dimensions.\n");
+ "time_raster_sink_b_impl::set_offset incorrect dimensions.");
}
}
diff --git a/gr-qtgui/lib/time_raster_sink_f_impl.cc b/gr-qtgui/lib/time_raster_sink_f_impl.cc
index d186f319da..c67ae080dc 100644
--- a/gr-qtgui/lib/time_raster_sink_f_impl.cc
+++ b/gr-qtgui/lib/time_raster_sink_f_impl.cc
@@ -310,7 +310,7 @@ void time_raster_sink_f_impl::set_multiplier(const std::vector<float>& mult)
}
} else {
throw std::runtime_error(
- "time_raster_sink_f_impl::set_multiplier incorrect dimensions.\n");
+ "time_raster_sink_f_impl::set_multiplier incorrect dimensions.");
}
}
@@ -326,7 +326,7 @@ void time_raster_sink_f_impl::set_offset(const std::vector<float>& offset)
}
} else {
throw std::runtime_error(
- "time_raster_sink_f_impl::set_offset incorrect dimensions.\n");
+ "time_raster_sink_f_impl::set_offset incorrect dimensions.");
}
}
diff --git a/gr-qtgui/lib/timedisplayform.cc b/gr-qtgui/lib/timedisplayform.cc
index d5ec4e7fde..570be33c6c 100644
--- a/gr-qtgui/lib/timedisplayform.cc
+++ b/gr-qtgui/lib/timedisplayform.cc
@@ -274,7 +274,7 @@ void TimeDisplayForm::setSampleRate(const double samprate)
getPlot()->setSampleRate(samprate, units, strtime[iunit]);
} else {
- throw std::runtime_error("TimeDisplayForm: samprate must be > 0.\n");
+ throw std::runtime_error("TimeDisplayForm: samprate must be > 0.");
}
}
diff --git a/gr-trellis/lib/fsm.cc b/gr-trellis/lib/fsm.cc
index bceed6e1ad..63c0324c79 100644
--- a/gr-trellis/lib/fsm.cc
+++ b/gr-trellis/lib/fsm.cc
@@ -86,12 +86,12 @@ fsm::fsm(const char* name)
FILE* fsmfile;
if ((fsmfile = fopen(name, "r")) == NULL)
- throw std::runtime_error("fsm::fsm(const char *name): file open error\n");
+ throw std::runtime_error("fsm::fsm(const char *name): file open error");
// printf("file open error in fsm()\n");
if (fscanf(fsmfile, "%d %d %d\n", &d_I, &d_S, &d_O) == EOF) {
if (ferror(fsmfile) != 0)
- throw std::runtime_error("fsm::fsm(const char *name): file read error\n");
+ throw std::runtime_error("fsm::fsm(const char *name): file read error");
}
d_NS.resize(d_I * d_S);
@@ -102,7 +102,7 @@ fsm::fsm(const char* name)
if (fscanf(fsmfile, "%d", &(d_NS[i * d_I + j])) == EOF) {
if (ferror(fsmfile) != 0)
throw std::runtime_error(
- "fsm::fsm(const char *name): file read error\n");
+ "fsm::fsm(const char *name): file read error");
}
}
}
@@ -111,7 +111,7 @@ fsm::fsm(const char* name)
if (fscanf(fsmfile, "%d", &(d_OS[i * d_I + j])) == EOF) {
if (ferror(fsmfile) != 0)
throw std::runtime_error(
- "fsm::fsm(const char *name): file read error\n");
+ "fsm::fsm(const char *name): file read error");
}
}
}
@@ -450,7 +450,7 @@ void fsm::generate_TM()
}
if (done == false && d_S > 1) {
// throw std::runtime_error ("fsm::generate_TM(): FSM appears to be
- // disconnected\n");
+ // disconnected");
printf("fsm::generate_TM(): FSM appears to be disconnected\n");
printf("state %d cannot be reached from all other states\n", s);
}
diff --git a/gr-trellis/lib/interleaver.cc b/gr-trellis/lib/interleaver.cc
index 5f5b8c0a30..2801a90707 100644
--- a/gr-trellis/lib/interleaver.cc
+++ b/gr-trellis/lib/interleaver.cc
@@ -79,7 +79,7 @@ interleaver::interleaver(const char* name)
if (fscanf(interleaverfile, "%d\n", &d_K) == EOF) {
if (ferror(interleaverfile) != 0)
throw std::runtime_error(
- "interleaver::interleaver(const char *name): file read error\n");
+ "interleaver::interleaver(const char *name): file read error");
}
d_INTER.resize(d_K);
@@ -89,7 +89,7 @@ interleaver::interleaver(const char* name)
if (fscanf(interleaverfile, "%d", &(d_INTER[i])) == EOF) {
if (ferror(interleaverfile) != 0)
throw std::runtime_error(
- "interleaver::interleaver(const char *name): file read error\n");
+ "interleaver::interleaver(const char *name): file read error");
}
}
diff --git a/gr-trellis/lib/siso_f_impl.cc b/gr-trellis/lib/siso_f_impl.cc
index 152d82b5a2..206db57398 100644
--- a/gr-trellis/lib/siso_f_impl.cc
+++ b/gr-trellis/lib/siso_f_impl.cc
@@ -173,7 +173,7 @@ int siso_f_impl::general_work(int noutput_items,
else if (d_POSTO)
multiple = d_FSM.O();
else
- throw std::runtime_error("siso_f_impl: Not both POSTI and POSTO can be false.\n");
+ throw std::runtime_error("siso_f_impl: Not both POSTI and POSTO can be false.");
int nblocks = noutput_items / (d_K * multiple);
// printf("general_work:Blocks: %d\n",nblocks);
diff --git a/gr-vocoder/lib/cvsd_decode_bs_impl.cc b/gr-vocoder/lib/cvsd_decode_bs_impl.cc
index 103ebfcc5d..85126f0f1b 100644
--- a/gr-vocoder/lib/cvsd_decode_bs_impl.cc
+++ b/gr-vocoder/lib/cvsd_decode_bs_impl.cc
@@ -71,10 +71,10 @@ cvsd_decode_bs_impl::cvsd_decode_bs_impl(short min_step,
d_stepsize(min_step)
{
if (d_K > 32)
- throw std::runtime_error("cvsd_decode_bs_impl: K must be <= 32\n");
+ throw std::runtime_error("cvsd_decode_bs_impl: K must be <= 32");
if (d_J > d_K)
- throw std::runtime_error("cvsd_decode_bs_impl: J must be <= K\n");
+ throw std::runtime_error("cvsd_decode_bs_impl: J must be <= K");
}
cvsd_decode_bs_impl::~cvsd_decode_bs_impl()
diff --git a/gr-vocoder/lib/cvsd_encode_sb_impl.cc b/gr-vocoder/lib/cvsd_encode_sb_impl.cc
index 26766fbf02..262ec0f5d3 100644
--- a/gr-vocoder/lib/cvsd_encode_sb_impl.cc
+++ b/gr-vocoder/lib/cvsd_encode_sb_impl.cc
@@ -70,10 +70,10 @@ cvsd_encode_sb_impl::cvsd_encode_sb_impl(short min_step,
d_stepsize(min_step)
{
if (d_K > 32)
- throw std::runtime_error("cvsd_decode_bs_impl: K must be <= 32\n");
+ throw std::runtime_error("cvsd_decode_bs_impl: K must be <= 32");
if (d_J > d_K)
- throw std::runtime_error("cvsd_decode_bs_impl: J must be <= K\n");
+ throw std::runtime_error("cvsd_decode_bs_impl: J must be <= K");
}
cvsd_encode_sb_impl::~cvsd_encode_sb_impl()