diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-02-15 17:26:57 +0000 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-02-15 17:26:57 +0000 |
commit | 0efe346b80e69cc0fefad03c42d6e99d9f8fe48c (patch) | |
tree | 4a5360823418e61c42c024b7f1afc33e8cb5cdf4 /lib/conf-parse.y | |
parent | 6a7286464d6c58417ded560413b546c36af37509 (diff) | |
download | lm-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.y | 4 |
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) |