diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2020-04-11 01:26:00 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-04-13 15:55:41 +0200 |
commit | 5134a5355588ee35018a9f4ee0cf791ccfa8d3c3 (patch) | |
tree | abb780d703a8e447750ebcbb0386fb0461625f10 /gr-fec | |
parent | 002439571af6db39a1a90fd72dd69495709bbf21 (diff) |
fec: replace stderr logging by calls to GR's logging facilties
Diffstat (limited to 'gr-fec')
-rw-r--r-- | gr-fec/lib/conv_bit_corr_bb_impl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-fec/lib/conv_bit_corr_bb_impl.cc b/gr-fec/lib/conv_bit_corr_bb_impl.cc index e85f51680c..f99eaadb50 100644 --- a/gr-fec/lib/conv_bit_corr_bb_impl.cc +++ b/gr-fec/lib/conv_bit_corr_bb_impl.cc @@ -127,7 +127,7 @@ int conv_bit_corr_bb_impl::general_work(int noutput_items, uint8_t* score_in = (uint8_t*)input_items[0]; // counting on 1:1 forecast + history to provide enough ninput_items... may need to - // insert check printf("%d, %d, %d\n", ninput_items[0], noutput_items, d_counter); + // insert check printf("%d, %d, %d", ninput_items[0], noutput_items, d_counter); int correlation_cycles = (noutput_items / output_multiple() <= static_cast<int>(d_counter)) ? noutput_items / output_multiple() @@ -180,14 +180,14 @@ int conv_bit_corr_bb_impl::general_work(int noutput_items, d_acquire = k; d_lane = i + 1; d_op = 1; - // printf("winner: lane %u, punc_cycle %u, pos/neg corr %d\n", i, k, + // printf("winner: lane %u, punc_cycle %u, pos/neg corr %d", i, k, // d_op); break; } else if (d_acc[i * (d_corr_sym) + k] > (d_cut - d_thresh)) { d_acquire = k; d_lane = i + 1; d_op = -1; - // printf("winner: lane %u, punc_cycle %u, pos/neg corr %d\n", i, k, + // printf("winner: lane %u, punc_cycle %u, pos/neg corr %d", i, k, // d_op); break; } @@ -215,7 +215,7 @@ int conv_bit_corr_bb_impl::general_work(int noutput_items, // states are set if (d_produce) { - // printf("producing\n"); + // printf("producing"); unsigned char* out = (unsigned char*)output_items[0]; memcpy(out, &(in[d_acquire]), @@ -243,7 +243,7 @@ float conv_bit_corr_bb_impl::data_garble_rate(int taps, float target) answer = 0.5 * (1 - pow(base, expo)); if ((errno == EDOM) || (errno == ERANGE)) { - fprintf(stderr, "Out of range errors while computing garble rate.\n"); + GR_LOG_ERROR(d_logger, "Out of range errors while computing garble rate."); exit(-1); } return answer; |