Changeset 4933
- Timestamp:
- 10/09/07 14:59:28 (1 year ago)
- Files:
-
- lm-sensors/trunk/lib/chips.c (modified) (3 diffs)
- lm-sensors/trunk/prog/sensors/chips.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/lib/chips.c
r4811 r4933 2312 2312 { { SENSORS_ADM1024_TEMP_HYST, "temp_hyst", SENSORS_ADM1024_TEMP, 2313 2313 SENSORS_ADM1024_TEMP, RW }, 2314 ADM1024_SYSCTL_TEMP, VALUE(2), 1 },2314 ADM1024_SYSCTL_TEMP, VALUE(2), 1, "temp1_min", 3 }, 2315 2315 { { SENSORS_ADM1024_TEMP_OVER, "temp_over", SENSORS_ADM1024_TEMP, 2316 2316 SENSORS_ADM1024_TEMP, RW }, … … 2318 2318 { { SENSORS_ADM1024_TEMP1_HYST, "temp1_hyst", SENSORS_ADM1024_TEMP1, 2319 2319 SENSORS_ADM1024_TEMP1, RW }, 2320 ADM1024_SYSCTL_TEMP1, VALUE(2), 1, "temp2_m ax_hyst", 3 },2320 ADM1024_SYSCTL_TEMP1, VALUE(2), 1, "temp2_min", 3 }, 2321 2321 { { SENSORS_ADM1024_TEMP1_OVER, "temp1_over", SENSORS_ADM1024_TEMP1, 2322 2322 SENSORS_ADM1024_TEMP1, RW }, … … 2324 2324 { { SENSORS_ADM1024_TEMP2_HYST, "temp2_hyst", SENSORS_ADM1024_TEMP2, 2325 2325 SENSORS_ADM1024_TEMP2, RW }, 2326 ADM1024_SYSCTL_TEMP2, VALUE(2), 1, "temp3_m ax_hyst", 3 },2326 ADM1024_SYSCTL_TEMP2, VALUE(2), 1, "temp3_min", 3 }, 2327 2327 { { SENSORS_ADM1024_TEMP2_OVER, "temp2_over", SENSORS_ADM1024_TEMP2, 2328 2328 SENSORS_ADM1024_TEMP2, RW }, lm-sensors/trunk/prog/sensors/chips.c
r4903 r4933 436 436 cur,min,max,alarms&ADM1024_ALARM_IN0?"ALARM":""); 437 437 } 438 } else 439 printf("ERROR: Can't get IN0 data!\n"); 438 } /* No error, can be missing */ 440 439 free(label); 441 440 if (!sensors_get_label_and_valid(*name,SENSORS_ADM1024_IN1,&label,&valid) && … … 496 495 cur,min,max,alarms&ADM1024_ALARM_IN5?"ALARM":""); 497 496 } 498 } else 499 printf("ERROR: Can't get IN5 data!\n"); 497 } /* No error, can be missing */ 500 498 free(label); 501 499 … … 509 507 cur,min,fdiv, alarms&ADM1024_ALARM_FAN1?"ALARM":""); 510 508 } 511 } else 512 printf("ERROR: Can't get FAN1 data!\n"); 509 } /* No error, can be missing */ 513 510 free(label); 514 511 if (!sensors_get_label_and_valid(*name,SENSORS_ADM1024_FAN2,&label,&valid) && … … 521 518 cur,min,fdiv, alarms&ADM1024_ALARM_FAN2?"ALARM":""); 522 519 } 523 } else 524 printf("ERROR: Can't get FAN2 data!\n"); 520 } /* No error, can be missing */ 525 521 free(label); 526 522 … … 531 527 if (valid) { 532 528 print_label(label,10); 533 print_temp_info( cur, min, max, HYST, 1, 0);529 print_temp_info(cur, max, min, MINMAX, 0, 0); 534 530 printf( " %s\n", alarms & ADM1024_ALARM_TEMP ? "ALARM" : "" ); 535 531 } … … 544 540 if (valid) { 545 541 print_label(label,10); 546 print_temp_info( cur, min, max, HYST, 1, 0);542 print_temp_info(cur, max, min, MINMAX, 0, 0); 547 543 printf( " %s\n", alarms & ADM1024_ALARM_TEMP1 ? "ALARM" : "" ); 548 544 } … … 557 553 if (valid) { 558 554 print_label(label,10); 559 print_temp_info( cur, min, max, HYST, 1, 0);555 print_temp_info(cur, max, min, MINMAX, 0, 0); 560 556 printf( " %s\n", alarms & ADM1024_ALARM_TEMP2 ? "ALARM" : "" ); 561 557 } 562 } else 563 printf("ERROR: Can't get TEMP2 data!\n"); 558 } /* No error, can be missing */ 564 559 free(label); 565 560
