Report configuration file read errors.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5638 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2009-02-10 20:50:16 +00:00
1 parent 556b03e425
commit ea0cfbeadf
3 files changed
+8 -1

No files matched your search

+4 -1
View File
@@ -58,7 +58,10 @@ const char *sensors_strerror(int errnum)
void sensors_default_parse_error(const char *err, int lineno)
{
fprintf(stderr, "Error: Line %d: %s\n", lineno, err);
if (lineno)
fprintf(stderr, "Error: Line %d: %s\n", lineno, err);
else
fprintf(stderr, "Error: %s\n", err);
}
void sensors_default_fatal_error(const char *proc, const char *err)