diff options
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/pycallback_object.h')
-rw-r--r-- | gnuradio-runtime/include/gnuradio/pycallback_object.h | 8 |
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; |