2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

dpdk: Fix dpdk logs being split over multiple lines.

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 <ktraynor@redhat.com>
Acked-by: Mike Pattrick <mkp@redhat.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
Eelco Chaudron
2024-10-31 13:03:59 +01:00
parent e998d4558c
commit cb5aebd6dc

View File

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