diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-02-28 11:02:21 -0800 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-02-28 11:02:21 -0800 |
commit | 33c7198b12eaae233e5e0e0a2bc266f2efb018b1 (patch) | |
tree | 184eff568243b976bb41501175d090d88213b0a3 /gr-blocks/lib/stream_pdu_base.cc | |
parent | 51c02f87a08efa4e679630771ec7dd0605e4986a (diff) |
blocks: added gr::blocks::pdu namespace for PDU functions
Diffstat (limited to 'gr-blocks/lib/stream_pdu_base.cc')
-rw-r--r-- | gr-blocks/lib/stream_pdu_base.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-blocks/lib/stream_pdu_base.cc b/gr-blocks/lib/stream_pdu_base.cc index 3378067f85..cc56b4ee65 100644 --- a/gr-blocks/lib/stream_pdu_base.cc +++ b/gr-blocks/lib/stream_pdu_base.cc @@ -28,7 +28,7 @@ #include <io.h> #endif -#include <gr_pdu.h> +#include <blocks/pdu.h> #include <gr_basic_block.h> #include "stream_pdu_base.h" #include <boost/format.hpp> @@ -112,12 +112,12 @@ namespace gr { { pmt::pmt_t vector = pmt::pmt_cdr(msg); size_t offset(0); - size_t itemsize(::gr_pdu_itemsize(type_from_pmt(vector))); + size_t itemsize(pdu::itemsize(pdu::type_from_pmt(vector))); int len(pmt::pmt_length(vector)*itemsize); const int rv = write(d_fd, pmt::pmt_uniform_vector_elements(vector, offset), len); if (rv != len) { - std::cerr << boost::format("WARNING: gr_stream_pdu_base::send(pdu) write failed! (d_fd=%d, len=%d, rv=%d)") + std::cerr << boost::format("WARNING: stream_pdu_base::send(pdu) write failed! (d_fd=%d, len=%d, rv=%d)") % d_fd % len % rv << std::endl; } } |