summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-23 20:37:15 +0200
committerwm4 <wm4@nowhere>2014-04-23 21:16:50 +0200
commitac1a21e488f1c6fb4963b40e0ea2da3d523c45ba (patch)
treec5685a6dd8ebc8413e8fee75bddeac0de81aee91 /common
parent8a74638dc743007f6d5d6bb3a672167fce353480 (diff)
downloadmpv-ac1a21e488f1c6fb4963b40e0ea2da3d523c45ba.tar.bz2
mpv-ac1a21e488f1c6fb4963b40e0ea2da3d523c45ba.tar.xz
terminal: fix printing of prefix
This was subtly change in 5cfb18. Revert the change.
Diffstat (limited to 'common')
-rw-r--r--common/msg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/msg.c b/common/msg.c
index 2caa048e40..0b61234bea 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -273,10 +273,11 @@ static void print_msg_on_terminal(struct mp_log *log, int lev, char *text)
fprintf(stream, "[%" PRId64 "] ", mp_time_us());
if (prefix) {
- if (root->module)
+ if (root->module) {
pretty_print_module(stream, prefix, root->color, lev);
- else if (root->verbose)
+ } else {
fprintf(stream, "[%s] ", prefix);
+ }
}
}