Skip to content

Commit cb5aebd

Browse files
committed
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 <[email protected]> Acked-by: Mike Pattrick <[email protected]> Signed-off-by: Eelco Chaudron <[email protected]>
1 parent e998d45 commit cb5aebd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/dpdk.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ dpdk_init__(const struct smap *ovs_other_config)
323323
if (log_stream == NULL) {
324324
VLOG_ERR("Can't redirect DPDK log: %s.", ovs_strerror(errno));
325325
} else {
326-
setbuf(log_stream, NULL);
327326
rte_openlog_stream(log_stream);
328327
}
329328

0 commit comments

Comments
 (0)