summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/block_executor.cc
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-01-26 00:13:47 +0100
committerMartin Braun <martin@gnuradio.org>2021-02-18 01:58:54 -0800
commitcedc95ad7d7aa983b2047650c3eebdf4eedda043 (patch)
tree94ec78827a367835fcf6498084487f1aaae27b80 /gnuradio-runtime/lib/block_executor.cc
parent6c93722c546a25bd1e310497a38af410f973c3f1 (diff)
block_executor: invalid states log errors without debug build
Clean up includes on the way. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gnuradio-runtime/lib/block_executor.cc')
-rw-r--r--gnuradio-runtime/lib/block_executor.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/gnuradio-runtime/lib/block_executor.cc b/gnuradio-runtime/lib/block_executor.cc
index 10a2128a4a..c026934bd9 100644
--- a/gnuradio-runtime/lib/block_executor.cc
+++ b/gnuradio-runtime/lib/block_executor.cc
@@ -18,12 +18,8 @@
#include <gnuradio/logger.h>
#include <gnuradio/prefs.h>
#include <block_executor.h>
-#include <boost/format.hpp>
-#include <boost/thread.hpp>
-#include <cassert>
-#include <cstdio>
-#include <iostream>
#include <limits>
+#include <sstream>
namespace gr {
@@ -246,7 +242,7 @@ block_executor::state block_executor::run_one_iteration()
max_noutput_items = round_down(d_max_noutput_items, m->output_multiple());
if (d->done()) {
- assert(0);
+ GR_LOG_ERROR(d_logger, "unexpected done() in run_one_iteration");
return DONE;
}
@@ -565,7 +561,7 @@ block_executor::state block_executor::run_one_iteration()
// Have the caller try again...
return READY_NO_OUTPUT;
}
- assert(0);
+ GR_LOG_ERROR(d_logger, "invalid state while going through iteration state machine");
were_done:
LOG(GR_LOG_INFO(d_debug_logger, "we're done"););