Return a string rather than NULL for unknown errors. Patch from

Andre Prendel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5633 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2009-01-29 12:24:08 +00:00
1 parent e675ad35c9
commit 60a1c9927a
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ void (*sensors_fatal_error) (const char *proc, const char *err) =
sensors_default_fatal_error;
static const char *errorlist[] = {
/* Invalid error code */ NULL,
/* Invalid error code */ "Unknown error",
/* SENSORS_ERR_WILDCARDS */ "Wildcard found in chip name",
/* SENSORS_ERR_NO_ENTRY */ "No such subfeature known",
/* SENSORS_ERR_ACCESS_R */ "Can't read",