diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-14 18:32:23 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-14 18:32:23 -0700 |
commit | 00ca9fcc3d7645d3f1a9d7d767b8ccab110325bb (patch) | |
tree | 6724098aade52f91a71a8aba38b1a0fe10037417 /host/lib/transport | |
parent | 0c6fbdfe3738e2d15b369fbd28d51ee0115628f9 (diff) | |
download | uhd-00ca9fcc3d7645d3f1a9d7d767b8ccab110325bb.tar.gz uhd-00ca9fcc3d7645d3f1a9d7d767b8ccab110325bb.tar.bz2 uhd-00ca9fcc3d7645d3f1a9d7d767b8ccab110325bb.zip |
usrp2: improved print-out for socket buffer sizing
Diffstat (limited to 'host/lib/transport')
-rw-r--r-- | host/lib/transport/udp_zero_copy_asio.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp index ced606777..c3c02707e 100644 --- a/host/lib/transport/udp_zero_copy_asio.cpp +++ b/host/lib/transport/udp_zero_copy_asio.cpp @@ -148,9 +148,12 @@ template<typename Opt> static void resize_buff_helper( if (target_size > 0){ size_t actual_size = udp_trans->resize_buff<Opt>(target_size); if (target_size != actual_size) std::cout << boost::format( - "Target %s buffer size: %d\n" - "Actual %s byffer size: %d" + "Target %s sock buff size: %d bytes\n" + "Actual %s sock buff size: %d bytes" ) % name % target_size % name % actual_size << std::endl; + else std::cout << boost::format( + "Current %s sock buff size: %d bytes" + ) % name % actual_size << std::endl; } //otherwise, ensure that the buffer is at least the minimum size |