diff mbox series

[ovs-dev,1/2] dpdk: Fix dpdk logs being split over multiple lines.

Message ID 3ce872dfa0334278f81deb40e26018d0f81ab2fb.1729170562.git.echaudro@redhat.com
State New
Headers show
Series [ovs-dev,1/2] dpdk: Fix dpdk logs being split over multiple lines. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed

Commit Message

Eelco Chaudron Oct. 17, 2024, 1:09 p.m. UTC
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.

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
---
 lib/dpdk.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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);
     }