Show
Ignore:
Timestamp:
04/09/07 20:07:07 (6 years ago)
Author:
jwrdegoede
Message:

-comment abituguru entry in lib/chips.c and prog/sensors/main.c, as the

abituguru seems to work well with the new dynamic chip support and generic
chip printroutines. note: the abituguru code should be completly removed in
the future.

-comment k8temp entry in lib/chips.c and prog/sensors/main.c, as the

k8temp seems to work well with the new dynamic chip support and generic
chip printroutines. note: the k8temp code should be completly removed in
the future.

-make the match for the subtype exact instead of a strncmp, otherwise

an alarm_enable flag gets classified as an alarm, leading to all sensors who
have their alarm enabled getting an alarm reported, as the alarm_enabled gets
read as alarm.

-and do the same for the _input match to check if this is a main or subfeature

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c

    r4359 r4367  
    9797                         
    9898                if (pmatch[2].rm_so != -1) { 
    99                         if (!strncmp(name + pmatch[2].rm_so, "_input", 
    100                                         pmatch[2].rm_eo - pmatch[2].rm_so)) { 
     99                        if (!strcmp(name + pmatch[2].rm_so, "_input")) { 
    101100                                int last_match; 
    102101