summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/pycallback_object.h
diff options
context:
space:
mode:
authorDavid Winter <david.winter@analog.com>2021-09-28 13:42:54 +0200
committermormj <34754695+mormj@users.noreply.github.com>2021-10-21 10:59:16 -0400
commitdb01027fd99c882cf8b3a7dad854606499778e3b (patch)
tree2b2acc3584dc36668ef3fb2493598e7abf7abd3c /gnuradio-runtime/include/gnuradio/pycallback_object.h
parent61709059f2e40a04ada73785812f19a5fc89cb8a (diff)
global: Replace stdio logging with logger
This commit replaces many uses of std::c{out,err} and printf with the appropriate GR_LOG_* directives. Signed-off-by: David Winter <david.winter@analog.com>
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/pycallback_object.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/pycallback_object.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnuradio-runtime/include/gnuradio/pycallback_object.h b/gnuradio-runtime/include/gnuradio/pycallback_object.h
index 2af94c167e..80281db1e2 100644
--- a/gnuradio-runtime/include/gnuradio/pycallback_object.h
+++ b/gnuradio-runtime/include/gnuradio/pycallback_object.h
@@ -12,6 +12,8 @@
#include <pythread.h>
#include <boost/format.hpp>
+#include <iostream>
+
enum pyport_t { PYPORT_STRING, PYPORT_FLOAT };
int pycallback_object_count = 500;
@@ -70,7 +72,9 @@ public:
{
myType rVal = d_deflt;
if (d_callback == NULL) {
- printf("WARNING: pycallback_object get() called without py callback set!\n");
+ std::cerr
+ << "WARNING: pycallback_object get() called without py callback set!"
+ << std::endl;
return rVal;
} else {
// obtain PyGIL
@@ -130,7 +134,7 @@ private:
* something. */
myType pyCast(PyObject* obj)
{
- printf("TYPE NOT IMPLEMENTED!\n");
+ std::cerr << "TYPE NOT IMPLEMENTED!" << std::endl;
assert(0);
// the following is to make compilers happy only.
myType dummy;