Changeset 4774

Show
Ignore:
Timestamp:
09/05/07 17:56:28 (7 years ago)
Author:
khali
Message:

Don't print an error message when libsensors returns a feature
we don't know. Just ignore that feature.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/chips.c

    r4766 r4774  
    8181 
    8282                indx = iter->type - first_val - 1; 
    83                 if (indx < 0 || indx >= size) { 
    84                         printf("ERROR: Bug in sensors: index out of bound"); 
    85                         return; 
    86                 } 
     83                if (indx < 0 || indx >= size) 
     84                        /* New feature in libsensors? Ignore. */ 
     85                        continue; 
    8786 
    8887                if (sensors_get_value(name, iter->number, &feature_vals[indx]))