Changeset 4938 for lm-sensors/trunk/prog/sensors/chips.c
- Timestamp:
- 10/11/07 15:42:05 (6 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/sensors/chips.c (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/sensors/chips.c
r4933 r4938 3565 3565 if (valid) { 3566 3566 print_label(label,10); 3567 if((int) state & 0x0 4)3567 if((int) state & 0x08) 3568 3568 printf("\tfaulty\n"); 3569 3569 else … … 3579 3579 if (valid) { 3580 3580 print_label(label,10); 3581 if((int) state & 0x0 4)3581 if((int) state & 0x08) 3582 3582 printf("\tfaulty\n"); 3583 3583 else … … 3593 3593 if (valid) { 3594 3594 print_label(label,10); 3595 if((int) state & 0x0 4)3595 if((int) state & 0x08) 3596 3596 printf("\tfaulty\n"); 3597 3597 else … … 3636 3636 { 3637 3637 char *label; 3638 double voltage, temp, temp min, tempmax, templim, state, fan;3638 double voltage, temp, templim, state, fan; 3639 3639 int valid; 3640 3640 … … 3642 3642 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1,&temp) && 3643 3643 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_LIM,&templim) && 3644 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_MIN,&tempmin) &&3645 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_MAX,&tempmax) &&3646 3644 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP1_STATE,&state)) { 3647 3645 if (valid) { 3648 3646 print_label(label,10); 3649 3647 if((int) state & 0x01) 3650 printf("\t%+6.2f C (Min = %+6.2f C, Max = %+6.2f C, Lim = %+6.2f C)\n", 3651 temp,tempmin,tempmax,templim); 3648 printf("\t%+6.2f C (Lim = %+6.2f C)\n", temp, templim); 3652 3649 else 3653 3650 printf("\tfailed\n"); … … 3660 3657 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP2,&temp) && 3661 3658 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP2_LIM,&templim) && 3662 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP2_MIN,&tempmin) &&3663 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP2_MAX,&tempmax) &&3664 3659 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP2_STATE,&state)) { 3665 3660 if (valid) { 3666 3661 print_label(label,10); 3667 3662 if((int) state & 0x01) 3668 printf("\t%+6.2f C (Min = %+6.2f C, Max = %+6.2f C, Lim = %+6.2f C)\n", 3669 temp,tempmin,tempmax,templim); 3663 printf("\t%+6.2f C (Lim = %+6.2f C)\n", temp, templim); 3670 3664 else 3671 3665 printf("\tfailed\n"); … … 3678 3672 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP3,&temp) && 3679 3673 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP3_LIM,&templim) && 3680 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP3_MIN,&tempmin) &&3681 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP3_MAX,&tempmax) &&3682 3674 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP3_STATE,&state)) { 3683 3675 if (valid) { 3684 3676 print_label(label,10); 3685 3677 if((int) state & 0x01) 3686 printf("\t%+6.2f C (Min = %+6.2f C, Max = %+6.2f C, Lim = %+6.2f C)\n", 3687 temp,tempmin,tempmax,templim); 3678 printf("\t%+6.2f C (Lim = %+6.2f C)\n", temp, templim); 3688 3679 else 3689 3680 printf("\tfailed\n"); … … 3696 3687 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP4,&temp) && 3697 3688 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP4_LIM,&templim) && 3698 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP4_MIN,&tempmin) &&3699 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP4_MAX,&tempmax) &&3700 3689 !sensors_get_feature(*name,SENSORS_FSCSCY_TEMP4_STATE,&state)) { 3701 3690 if (valid) { 3702 3691 print_label(label,10); 3703 3692 if((int) state & 0x01) 3704 printf("\t%+6.2f C (Min = %+6.2f C, Max = %+6.2f C, Lim = %+6.2f C)\n", 3705 temp,tempmin,tempmax,templim); 3693 printf("\t%+6.2f C (Lim = %+6.2f C)\n", temp, templim); 3706 3694 else 3707 3695 printf("\tfailed\n"); … … 3716 3704 if (valid) { 3717 3705 print_label(label,10); 3718 if((int) state & 0x0 2)3706 if((int) state & 0x08) 3719 3707 printf("\tfaulty\n"); 3720 3708 else … … 3730 3718 if (valid) { 3731 3719 print_label(label,10); 3732 if((int) state & 0x0 2)3720 if((int) state & 0x08) 3733 3721 printf("\tfaulty\n"); 3734 3722 else … … 3744 3732 if (valid) { 3745 3733 print_label(label,10); 3746 if((int) state & 0x0 2)3734 if((int) state & 0x08) 3747 3735 printf("\tfaulty\n"); 3748 3736 else … … 3758 3746 if (valid) { 3759 3747 print_label(label,10); 3760 if((int) state & 0x0 2)3748 if((int) state & 0x08) 3761 3749 printf("\tfaulty\n"); 3762 3750 else … … 3772 3760 if (valid) { 3773 3761 print_label(label,10); 3774 if((int) state & 0x0 2)3762 if((int) state & 0x08) 3775 3763 printf("\tfaulty\n"); 3776 3764 else … … 3786 3774 if (valid) { 3787 3775 print_label(label,10); 3788 if((int) state & 0x0 2)3776 if((int) state & 0x08) 3789 3777 printf("\tfaulty\n"); 3790 3778 else … … 3879 3867 if (valid) { 3880 3868 print_label(label,10); 3881 if((int) state & 0x0 4)3869 if((int) state & 0x08) 3882 3870 printf("\tfaulty\n"); 3883 3871 else … … 3893 3881 if (valid) { 3894 3882 print_label(label,10); 3895 if((int) state & 0x0 4)3883 if((int) state & 0x08) 3896 3884 printf("\tfaulty\n"); 3897 3885 else … … 3907 3895 if (valid) { 3908 3896 print_label(label,10); 3909 if((int) state & 0x0 4)3897 if((int) state & 0x08) 3910 3898 printf("\tfaulty\n"); 3911 3899 else
