summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-06-12 23:40:59 +0200
committerMarcus Müller <marcus@hostalia.de>2021-06-17 00:08:24 +0200
commitc215399e5a56796b37d1520fc0e9cc9d90115c6b (patch)
tree1764063f46d7b13a7f68e631eece08d16725ed26 /gnuradio-runtime/lib
parenta919427be5faae696602b9a86f2da9d135ac736e (diff)
logging: remove <iostream> from logger.h, add where consequently missing
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gnuradio-runtime/lib')
-rw-r--r--gnuradio-runtime/lib/flowgraph.cc5
-rw-r--r--gnuradio-runtime/lib/hier_block2_detail.cc5
-rw-r--r--gnuradio-runtime/lib/logger.cc1
3 files changed, 9 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/flowgraph.cc b/gnuradio-runtime/lib/flowgraph.cc
index 5c65758888..4e60e16010 100644
--- a/gnuradio-runtime/lib/flowgraph.cc
+++ b/gnuradio-runtime/lib/flowgraph.cc
@@ -17,9 +17,12 @@
#include <sstream>
#include <stdexcept>
+// TODO: Replace with GNU Radio logging
+#include <iostream>
+
namespace gr {
-#define FLOWGRAPH_DEBUG 0
+constexpr bool FLOWGRAPH_DEBUG = false;
edge::~edge() {}
diff --git a/gnuradio-runtime/lib/hier_block2_detail.cc b/gnuradio-runtime/lib/hier_block2_detail.cc
index 512cfaa33e..d63195d36d 100644
--- a/gnuradio-runtime/lib/hier_block2_detail.cc
+++ b/gnuradio-runtime/lib/hier_block2_detail.cc
@@ -19,9 +19,12 @@
#include <sstream>
#include <stdexcept>
+// TODO: Replace with GNU Radio logging
+#include <iostream>
+
namespace gr {
-#define HIER_BLOCK2_DETAIL_DEBUG 0
+constexpr bool HIER_BLOCK2_DETAIL_DEBUG = false;
hier_block2_detail::hier_block2_detail(hier_block2* owner)
: d_owner(owner), d_parent_detail(0), d_fg(make_flowgraph())
diff --git a/gnuradio-runtime/lib/logger.cc b/gnuradio-runtime/lib/logger.cc
index c344f050be..ee3bc28e71 100644
--- a/gnuradio-runtime/lib/logger.cc
+++ b/gnuradio-runtime/lib/logger.cc
@@ -21,6 +21,7 @@
#include <gnuradio/logger.h>
#include <gnuradio/prefs.h>
#include <algorithm>
+#include <iostream>
#include <memory>
#include <stdexcept>