summaryrefslogtreecommitdiff
path: root/lib/conf-parse.y
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-02-15 17:26:57 +0000
committerJean Delvare <khali@linux-fr.org>2009-02-15 17:26:57 +0000
commit0efe346b80e69cc0fefad03c42d6e99d9f8fe48c (patch)
tree4a5360823418e61c42c024b7f1afc33e8cb5cdf4 /lib/conf-parse.y
parent6a7286464d6c58417ded560413b546c36af37509 (diff)
downloadlm-sensors-git-0efe346b80e69cc0fefad03c42d6e99d9f8fe48c.tar.gz
Include the configuration file name when reporting parse errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5649 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/conf-parse.y')
-rw-r--r--lib/conf-parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/conf-parse.y b/lib/conf-parse.y
index 0ee7de8a..6641253a 100644
--- a/lib/conf-parse.y
+++ b/lib/conf-parse.y
@@ -332,10 +332,10 @@ chip_name: NAME
void sensors_yyerror(const char *err)
{
if (sensors_lex_error[0]) {
- sensors_parse_error(sensors_lex_error,sensors_yylineno);
+ sensors_parse_error_wfn(sensors_lex_error, sensors_yyfilename, sensors_yylineno);
sensors_lex_error[0] = '\0';
} else
- sensors_parse_error(err,sensors_yylineno);
+ sensors_parse_error_wfn(err, sensors_yyfilename, sensors_yylineno);
}
sensors_expr *malloc_expr(void)