Skip to content

Commit f58d540

Browse files
chaudronkevintraynor
authored andcommitted
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. Signed-off-by: Eelco Chaudron <[email protected]> Acked-by: Mike Pattrick <[email protected]>
1 parent 0256ee6 commit f58d540

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/dpdk.c

-1
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)