From f18ce7eca00a2ea384a5244c6b01e82e5ede0630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 5 May 2024 16:38:02 +0200 Subject: [PATCH] msg: print all messages to one stream This reverts commit 4939570e17d4659944924ed6012793b433109ab1 and makes it more strict about the output stream. Status message is also on the same stream now. --- common/msg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/msg.c b/common/msg.c index 3e6bad2418..99bc82d06f 100644 --- a/common/msg.c +++ b/common/msg.c @@ -194,8 +194,7 @@ int mp_msg_level(struct mp_log *log) static inline int term_msg_fileno(struct mp_log_root *root, int lev) { - return (root->force_stderr || lev == MSGL_STATUS || lev == MSGL_FATAL || - lev == MSGL_ERR || lev == MSGL_WARN) ? STDERR_FILENO : STDOUT_FILENO; + return root->force_stderr ? STDERR_FILENO : STDOUT_FILENO; } // Reposition cursor and clear lines for outputting the status line. In certain