From 86ba2cc7b01d2bf4a1a9c7b149875d01d032158b Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 20 Sep 2023 11:57:45 +0200 Subject: [PATCH] hd-rum-transcode: print req buflen if error refer to GH-340 --- src/hd-rum-translator/hd-rum-translator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hd-rum-translator/hd-rum-translator.cpp b/src/hd-rum-translator/hd-rum-translator.cpp index 271e12a45..2d39d9171 100644 --- a/src/hd-rum-translator/hd-rum-translator.cpp +++ b/src/hd-rum-translator/hd-rum-translator.cpp @@ -106,7 +106,8 @@ struct replica { throw string("Cannot initialize output port!\n"); } if (udp_set_send_buf(sock.get(), bufsize) != TRUE) - fprintf(stderr, "Cannot set send buffer!\n"); + fprintf(stderr, "Cannot set send buffer to %sB!\n", + format_in_si_units(bufsize)); module_init_default(&mod); mod.cls = MODULE_CLASS_PORT; mod.name = get_replica_mod_name(addr, tx_port); @@ -978,7 +979,8 @@ int main(int argc, char **argv) } if (udp_set_recv_buf(sock_in, state.bufsize) != TRUE) { - fprintf(stderr, "Cannot set recv buffer!\n"); + fprintf(stderr, "Cannot set recv buffer to %sB!\n", + format_in_si_units(state.bufsize)); } printf("listening on *:%d\n", params.port);