More recent versions of the vprintf() implementation in glibc are
exhibiting this truncation behavior due to an internal buffer size
change. According to the glibc developers, this is not considered
a bug (see: https://sourceware.org/bugzilla/show_bug.cgi?id=31137).

To prevent buffer truncation, remove the request for unbuffered
output.

Acked-by: Kevin Traynor <[email protected]>
Acked-by: Mike Pattrick <[email protected]>
Signed-off-by: Eelco Chaudron <[email protected]>
---
 lib/dpdk.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/dpdk.c b/lib/dpdk.c
index 940c43c07..b7516257c 100644
--- a/lib/dpdk.c
+++ b/lib/dpdk.c
@@ -323,7 +323,6 @@ dpdk_init__(const struct smap *ovs_other_config)
     if (log_stream == NULL) {
         VLOG_ERR("Can't redirect DPDK log: %s.", ovs_strerror(errno));
     } else {
-        setbuf(log_stream, NULL);
         rte_openlog_stream(log_stream);
     }
 
-- 
2.46.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to