diff options
author | eb | 2008-09-23 21:57:31 +0000 |
---|---|---|
committer | eb | 2008-09-23 21:57:31 +0000 |
commit | 801b22a99512ed3dfd2b92bfc597bfc3451ccbc9 (patch) | |
tree | d515b24be4fb7feec2ff46da755e2d7e80bd2650 /usrp2 | |
parent | 16699b8ac2ab0c98ad3593b573e409ce39f9eb7c (diff) | |
download | gnuradio-801b22a99512ed3dfd2b92bfc597bfc3451ccbc9.tar.gz gnuradio-801b22a99512ed3dfd2b92bfc597bfc3451ccbc9.tar.bz2 gnuradio-801b22a99512ed3dfd2b92bfc597bfc3451ccbc9.zip |
usrp2 work-in-progress
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9643 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2')
-rw-r--r-- | usrp2/host/lib/usrp2_impl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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<uint32_t *>(&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; } |