From 4b0d691a377f364c37183d181e1ec337cdf65109 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 15 May 2023 17:02:43 +0200 Subject: [PATCH] drivers console native_posix: Do not set buffering mode anymore Since aadca692b3f1c53aad97f11febc1657ce695bd4b the board code already sets the stdout/err buffering, even if there is no console driver; So there is no need to set it also in the console driver. Signed-off-by: Alberto Escolar Piedras --- drivers/console/native_posix_console.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/console/native_posix_console.c b/drivers/console/native_posix_console.c index bdd4e4349fc..af39a555d4d 100644 --- a/drivers/console/native_posix_console.c +++ b/drivers/console/native_posix_console.c @@ -31,14 +31,6 @@ */ static void native_posix_stdout_init(void) { - /* Let's ensure that even if we are redirecting to a file, we get stdout - * and stderr line buffered (default for console). Note that glibc - * ignores size. But just in case we set a reasonable number in case - * somebody tries to compile against a different library - */ - setvbuf(stdout, NULL, _IOLBF, 512); - setvbuf(stderr, NULL, _IOLBF, 512); - #ifdef CONFIG_PRINTK extern void __printk_hook_install(int (*fn)(int)); __printk_hook_install(putchar);