aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorLars Amsel <lars.amsel@ni.com>2019-02-26 15:15:20 +0100
committerMichael West <michael.west@ettus.com>2019-03-05 10:30:51 -0800
commitc287e23027bcb3f75a3098101e58ae415b4d273b (patch)
treeb7cc0589743d14987ac19bf96a89be4d6e562a4b /host
parent192c7ca20a27e586491d42a2ec719d0bc6f66bee (diff)
downloaduhd-c287e23027bcb3f75a3098101e58ae415b4d273b.tar.gz
uhd-c287e23027bcb3f75a3098101e58ae415b4d273b.tar.bz2
uhd-c287e23027bcb3f75a3098101e58ae415b4d273b.zip
transport: udp: Fix buffer size warning
When using a buffer size smaller than recommended, a warning would be printed with the wrong value (it would print the default value, not the actual value).
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/udp_zero_copy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/udp_zero_copy.cpp b/host/lib/transport/udp_zero_copy.cpp
index 1ccee72a2..6d615570f 100644
--- a/host/lib/transport/udp_zero_copy.cpp
+++ b/host/lib/transport/udp_zero_copy.cpp
@@ -425,7 +425,7 @@ udp_zero_copy::sptr udp_zero_copy::make(const std::string& addr,
< xport_params.num_recv_frames * MAX_ETHERNET_MTU) {
UHD_LOG_WARNING("UDP",
"The current recv_buff_size of "
- << xport_params.recv_buff_size
+ << buff_params_out.recv_buff_size
<< " is less than the minimum recommended size of "
<< xport_params.num_recv_frames * MAX_ETHERNET_MTU
<< " and may result in dropped packets on some NICs");
@@ -434,7 +434,7 @@ udp_zero_copy::sptr udp_zero_copy::make(const std::string& addr,
< xport_params.num_send_frames * MAX_ETHERNET_MTU) {
UHD_LOG_WARNING("UDP",
"The current send_buff_size of "
- << xport_params.send_buff_size
+ << buff_params_out.send_buff_size
<< " is less than the minimum recommended size of "
<< xport_params.num_send_frames * MAX_ETHERNET_MTU
<< " and may result in dropped packets on some NICs");