mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-01 14:55:27 +00:00
Don't print an error message when libsensors returns a feature
we don't know. Just ignore that feature. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4774 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -80,10 +80,9 @@ static void sensors_get_available_features(const sensors_chip_name *name,
|
|||||||
int indx;
|
int indx;
|
||||||
|
|
||||||
indx = iter->type - first_val - 1;
|
indx = iter->type - first_val - 1;
|
||||||
if (indx < 0 || indx >= size) {
|
if (indx < 0 || indx >= size)
|
||||||
printf("ERROR: Bug in sensors: index out of bound");
|
/* New feature in libsensors? Ignore. */
|
||||||
return;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
if (sensors_get_value(name, iter->number, &feature_vals[indx]))
|
if (sensors_get_value(name, iter->number, &feature_vals[indx]))
|
||||||
printf("ERROR: Can't get %s data!\n", iter->name);
|
printf("ERROR: Can't get %s data!\n", iter->name);
|
||||||
|
Reference in New Issue
Block a user