summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-18 15:13:38 +0100
committerwm4 <wm4@nowhere>2013-12-20 21:07:57 +0100
commit78292058ccf3fb827c9acc8ab3f616fa78a7a1e5 (patch)
treeba9b32c3115d75487f8ec06356724fb96425bc63
parent4d4b82217126de3160299b3aefba1f6941623d30 (diff)
downloadmpv-78292058ccf3fb827c9acc8ab3f616fa78a7a1e5.tar.bz2
mpv-78292058ccf3fb827c9acc8ab3f616fa78a7a1e5.tar.xz
terminal: remove separate formatting for --msgmodule
Instead, --msgmodule uses the same formatting as -v.
-rw-r--r--common/msg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/msg.c b/common/msg.c
index c88be847e5..49a94ba7b5 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -124,10 +124,7 @@ static void mp_msg_log_va(struct mp_log *log, int lev, const char *format,
set_msg_color(stream, lev);
if (header) {
- if (mp_msg_module) {
- fprintf(stream, "%9s", log->verbose_prefix);
- fprintf(stream, ": ");
- } else if (lev >= MSGL_V || verbose) {
+ if (lev >= MSGL_V || verbose || mp_msg_module) {
fprintf(stream, "[%s] ", log->verbose_prefix);
} else if (log->prefix) {
fprintf(stream, "[%s] ", log->prefix);