diff options
author | Jacob Gilbert <jacob.gilbert@protonmail.com> | 2021-02-12 16:09:41 -0800 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-02-13 02:42:17 -0800 |
commit | ffd67d14dcd0f08f8ff6fa7a5f8386d20ebeb92f (patch) | |
tree | b9a242b5fdbeb36291fe71d14df504172966d1dd | |
parent | f4dd865e2a72c60515efa81bd49521a4365e6ce7 (diff) |
gr-blocks: Update message debug error handling on Print PDU port
Currently non PDU messages get silently dropped. This can mask connection issues; given this is a debug block a WARNing messages seems appropriate
Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
-rw-r--r-- | gr-blocks/lib/message_debug_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-blocks/lib/message_debug_impl.cc b/gr-blocks/lib/message_debug_impl.cc index fa0f66d973..557bbfd106 100644 --- a/gr-blocks/lib/message_debug_impl.cc +++ b/gr-blocks/lib/message_debug_impl.cc @@ -60,7 +60,8 @@ void message_debug_impl::store(pmt::pmt_t msg) void message_debug_impl::print_pdu(pmt::pmt_t pdu) { - if (pmt::is_null(pdu) || !pmt::is_pair(pdu)) { + if (!pmt::is_pdu(pdu)) { + GR_LOG_WARN(d_logger, "Non PDU type message received. Dropping."); return; } |