From 00ca9fcc3d7645d3f1a9d7d767b8ccab110325bb Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 14 Jun 2010 18:32:23 -0700 Subject: usrp2: improved print-out for socket buffer sizing --- host/lib/transport/udp_zero_copy_asio.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'host') 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 static void resize_buff_helper( if (target_size > 0){ size_t actual_size = udp_trans->resize_buff(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 -- cgit v1.2.3