2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Delete unused SENSORS_ERR_ACCESS.

Rename SENSORS_ERR_PROC to the more neutral SENSORS_ERR_KERNEL.
Introduce SENSORS_ERR_NO_DEVS for finer-grained error reporting.
Use SENSORS_ERR_KERNEL and SENSORS_ERR_NO_DEVS where appropriate.
No error message for invalid error codes.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4854 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-09-23 13:53:11 +00:00
parent 4b6f9ee727
commit ab36c5b0f8
5 changed files with 20 additions and 18 deletions

View File

@@ -171,8 +171,8 @@ static int do_a_set(const sensors_chip_name *name)
int res;
if ((res = sensors_do_chip_sets(name))) {
if (res == -SENSORS_ERR_PROC) {
fprintf(stderr, "%s: %s for writing;\n",
if (res == -SENSORS_ERR_KERNEL) {
fprintf(stderr, "%s: %s;\n",
sprintf_chip_name(name),
sensors_strerror(res));
fprintf(stderr, "Run as root?\n");