From 801b22a99512ed3dfd2b92bfc597bfc3451ccbc9 Mon Sep 17 00:00:00 2001 From: eb Date: Tue, 23 Sep 2008 21:57:31 +0000 Subject: usrp2 work-in-progress git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9643 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/host/lib/usrp2_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usrp2') diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc index 68cf676c6..eb52242f8 100644 --- a/usrp2/host/lib/usrp2_impl.cc +++ b/usrp2/host/lib/usrp2_impl.cc @@ -856,6 +856,10 @@ namespace usrp2 { iov[1].iov_base = const_cast(&items[n]); iov[1].iov_len = i * sizeof(uint32_t); + size_t total = iov[0].iov_len + iov[1].iov_len; + if (total < 64) + fprintf(stderr, "usrp2::tx_raw: FIXME: short packet: %zd items (%zd bytes)\n", i, total); + if (d_eth_buf->tx_framev(iov, 2) != eth_buffer::EB_OK){ return false; } -- cgit