summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcantabile <cantabile.desu@gmail.com>2012-08-20 14:01:55 +0300
committerwm4 <wm4@nowhere>2012-08-20 15:36:05 +0200
commitfa0ea3bd0dc2540a7de8936a761262a0a6448710 (patch)
treea01d76f912dcbe5be991c3bbc4f9e003c6df0ef9
parent41d6ddf5fbd287ad5d5a7ba44a2dfb82db4461fd (diff)
downloadmpv-fa0ea3bd0dc2540a7de8936a761262a0a6448710.tar.bz2
mpv-fa0ea3bd0dc2540a7de8936a761262a0a6448710.tar.xz
parser-cfg: specify which config file contains the unknown option
Also add some punctuation to the warning message.
-rw-r--r--parser-cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser-cfg.c b/parser-cfg.c
index 75a0457153..5ad6b9698e 100644
--- a/parser-cfg.c
+++ b/parser-cfg.c
@@ -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,