summaryrefslogtreecommitdiff
path: root/lib/init.c
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/init.c
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/init.c')
-rw-r--r--lib/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/init.c b/lib/init.c
index a6644436..10cfc10e 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -125,7 +125,7 @@ static int add_config_from_dir(const char *dir)
count = scandir(dir, &namelist, config_file_filter, alphasort);
if (count < 0) {
- sensors_parse_error(strerror(errno), 0);
+ sensors_parse_error_wfn(strerror(errno), NULL, 0);
return -SENSORS_ERR_PARSE;
}
@@ -147,7 +147,7 @@ static int add_config_from_dir(const char *dir)
fclose(input);
} else {
res = -SENSORS_ERR_PARSE;
- sensors_parse_error(strerror(errno), 0);
+ sensors_parse_error_wfn(strerror(errno), path, 0);
}
}
@@ -187,7 +187,7 @@ int sensors_init(FILE *input)
goto exit_cleanup;
} else if (errno != ENOENT) {
- sensors_parse_error(strerror(errno), 0);
+ sensors_parse_error_wfn(strerror(errno), name, 0);
res = -SENSORS_ERR_PARSE;
goto exit_cleanup;
}