From fd081c467d2e2e4fe9a6918b8f07a063bcd01c8e Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 Dec 2013 17:30:19 +0100 Subject: [PATCH] options: print any options set in verbose mode So we will know whether someone uses broken config file options when posting a log with -v. --- options/m_config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/options/m_config.c b/options/m_config.c index 0fc99b0257..4b520c758a 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -490,6 +490,11 @@ static int m_config_parse_option(struct m_config *config, struct bstr name, if ((flags & M_SETOPT_PRESERVE_CMDLINE) && co->is_set_from_cmdline) set = false; + if (set) { + MP_VERBOSE(config, "Setting option '%.*s' = '%.*s' (flags = %d)\n", + BSTR_P(name), BSTR_P(param), flags); + } + // Check if this option isn't forbidden in the current mode if ((flags & M_SETOPT_FROM_CONFIG_FILE) && (co->opt->flags & M_OPT_NOCFG)) { MP_ERR(config, "The %.*s option can't be used in a config file.\n",