diff options
author | wm4 <wm4@nowhere> | 2019-11-22 01:10:27 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-22 01:15:08 +0100 |
commit | 4a90da4e1d336e61115b897b2bb84324f80539b5 (patch) | |
tree | 09643f2b30290dc99e8737c9e3e1acd8378ddc61 /common/msg.c | |
parent | 65a531b8e45eb4413ed847ad335d8b3f9a827d0f (diff) | |
download | mpv-4a90da4e1d336e61115b897b2bb84324f80539b5.tar.bz2 mpv-4a90da4e1d336e61115b897b2bb84324f80539b5.tar.xz |
msg: show how many messages were dropped
Although repl.lua will probably not use this.
Diffstat (limited to 'common/msg.c')
-rw-r--r-- | common/msg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/msg.c b/common/msg.c index d51cffe638..2756a27e8d 100644 --- a/common/msg.c +++ b/common/msg.c @@ -692,7 +692,9 @@ struct mp_log_buffer_entry *mp_msg_log_buffer_read(struct mp_log_buffer *buffer) *res = (struct mp_log_buffer_entry) { .prefix = "overflow", .level = MSGL_FATAL, - .text = "log message buffer overflow\n", + .text = talloc_asprintf(res, + "log message buffer overflow: %"PRId64" messages skipped\n", + buffer->dropped), }; buffer->dropped = 0; } else { |