diff options
author | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2009-02-15 17:26:57 +0000 |
---|---|---|
committer | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2009-02-15 17:26:57 +0000 |
commit | 1464d8e9afa7816f4600d0801ce439e628bd4d03 (patch) | |
tree | 4a5360823418e61c42c024b7f1afc33e8cb5cdf4 /lib/init.c | |
parent | 0cdd979d1e90677d31988038763f55deb6ad680a (diff) | |
download | lm-sensors-1464d8e9afa7816f4600d0801ce439e628bd4d03.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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |