From c287e23027bcb3f75a3098101e58ae415b4d273b Mon Sep 17 00:00:00 2001 From: Lars Amsel Date: Tue, 26 Feb 2019 15:15:20 +0100 Subject: 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). --- host/lib/transport/udp_zero_copy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/transport') 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"); -- cgit v1.2.3