mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-24 12:04:33 +00:00
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:
1 parent
e675ad35c9
commit
60a1c9927a
2 files changed
+2
-1
No files matched your search
@@ -6,6 +6,7 @@ SVN-HEAD
|
||||
Add support for current sensors
|
||||
Fix error propagation during expression evaluation
|
||||
Detect excessive recursion depth during expression eval (#2365)
|
||||
Return a string rather than NULL for unknown errors
|
||||
lm_sensors.init: Support new format of /etc/sysconfig/lm_sensors (#2246)
|
||||
Drop support for kernels 2.4 and earlier
|
||||
lm_sensors.init.suse: Delete (actual SuSE script is much different)
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user