Changeset 4367

Show
Ignore:
Timestamp:
04/09/07 20:07:07 (7 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

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
4 modified

Legend:

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

    r4366 r4367  
    599599        submatches = matches[i].submatches; 
    600600        for(i = 0; submatches[i].name != 0; i++) 
    601                 if (!strncmp(name + pmatch[3].rm_so, submatches[i].name, size_second)) 
     601                if (!strcmp(name + pmatch[3].rm_so, submatches[i].name)) 
    602602                        return submatches[i].type; 
    603603         
  • lm-sensors/branches/lm-sensors-3.0.0/lib/chips.c

    r4359 r4367  
    61606160 { SENSORS_F71805F_PREFIX, f71805f_features }, 
    61616161 { SENSORS_F71872F_PREFIX, f71805f_features }, 
    6162  { SENSORS_ABITUGURU_PREFIX, abituguru_features }, 
    6163  { SENSORS_K8TEMP_PREFIX, k8temp_features }, 
     6162// { SENSORS_ABITUGURU_PREFIX, abituguru_features }, 
     6163// { SENSORS_K8TEMP_PREFIX, k8temp_features }, 
    61646164 { SENSORS_CORETEMP_PREFIX, coretemp_features }, 
    61656165 { SENSORS_DME1737_PREFIX, dme1737_features }, 
  • 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                                 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/main.c

    r4362 r4367  
    426426        { "f71805f", print_f71805f }, 
    427427        { "f71872f", print_f71805f }, 
    428         { "abituguru", print_abituguru }, 
    429         { "k8temp", print_k8temp }, 
     428//      { "abituguru", print_abituguru }, 
     429//      { "k8temp", print_k8temp }, 
    430430        { "coretemp", print_coretemp }, 
    431431        { "dme1737", print_dme1737 },