parser-cfg: specify which config file contains the unknown option

Also add some punctuation to the warning message.
This commit is contained in:
cantabile 2012-08-20 14:01:55 +03:00 committed by wm4
parent 41d6ddf5fb
commit fa0ea3bd0d
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ int m_config_parse_config_file(m_config_t *config, const char *conffile)
PRINT_LINENUM;
if (tmp == M_OPT_UNKNOWN) {
mp_msg(MSGT_CFGPARSER, MSGL_WARN,
"Warning unknown option %s at line %d\n",
opt, line_num);
"Warning: unknown option '%s' at line %d in file '%s'.\n",
opt, line_num, conffile);
continue;
}
mp_msg(MSGT_CFGPARSER, MSGL_ERR,