History

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.

Kacper Michajłow committed 2 years ago

Commit f18ce7e1 parent 414c47d1 file · +1 −2Browse files

Showing the changes to common/msg.c (1 of 1 file). Show all

Unified · Split

common/msg.c+1−2
@@ -194,8 +194,7 @@ int mp_msg_level(struct mp_log *log) · 193 unmodified lines
194 194
195static inline int term_msg_fileno(struct mp_log_root *root, int lev)195static inline int term_msg_fileno(struct mp_log_root *root, int lev)
196{196{
197 return (root->force_stderr || lev == MSGL_STATUS || lev == MSGL_FATAL ||197 return root->force_stderr ? STDERR_FILENO : STDOUT_FILENO;
198 lev == MSGL_ERR || lev == MSGL_WARN) ? STDERR_FILENO : STDOUT_FILENO;
199}198}
200 199
201// Reposition cursor and clear lines for outputting the status line. In certain200// Reposition cursor and clear lines for outputting the status line. In certain

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t