summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-14 18:50:58 +0200
committerwm4 <wm4@nowhere>2015-10-14 18:50:58 +0200
commitda496ae2fe5575b94eda64f03f23a03075d83477 (patch)
tree4343a633a26be1f38e3ade50332ff2a688eef2ca
parent184426175fe021638dc2ed30eb50418d5a462f6a (diff)
downloadmpv-da496ae2fe5575b94eda64f03f23a03075d83477.tar.bz2
mpv-da496ae2fe5575b94eda64f03f23a03075d83477.tar.xz
msg: remove the useless trailing comment from stats dumping
The origin of the stats line was added as a comment (starting with '#'). It was useless and just blowing up file sizes.
-rw-r--r--common/msg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/common/msg.c b/common/msg.c
index 6a7f699b31..42fa770fba 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -326,10 +326,8 @@ static void write_msg_to_buffers(struct mp_log *log, int lev, char *text)
static void dump_stats(struct mp_log *log, int lev, char *text)
{
struct mp_log_root *root = log->root;
- if (lev == MSGL_STATS && root->stats_file) {
- fprintf(root->stats_file, "%"PRId64" %s #%s\n", mp_time_us(), text,
- log->verbose_prefix);
- }
+ if (lev == MSGL_STATS && root->stats_file)
+ fprintf(root->stats_file, "%"PRId64" %s\n", mp_time_us(), text);
}
void mp_msg_va(struct mp_log *log, int lev, const char *format, va_list va)