2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

BMC cleanup

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1615 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker
2002-11-16 19:40:06 +00:00
parent c023ec3d2f
commit d999488cd1
3 changed files with 125 additions and 143 deletions

View File

@@ -3649,7 +3649,7 @@ void print_vt8231(const sensors_chip_name *name)
void print_bmc(const sensors_chip_name *name)
{
char *label = NULL;
double cur,min,max,fdiv;
double cur,min,max;
int alarms, valid, i;
/*
@@ -3682,14 +3682,11 @@ void print_bmc(const sensors_chip_name *name)
for(i = 0; i < BMC_MAX_FANS; i++) {
if (!sensors_get_label_and_valid(*name,SENSORS_BMC_FAN1+i,&label,&valid) &&
!sensors_get_feature(*name,SENSORS_BMC_FAN1+i,&cur) &&
/*
!sensors_get_feature(*name,SENSORS_BMC_FAN1_DIV+i,&fdiv) &&
*/
!sensors_get_feature(*name,SENSORS_BMC_FAN1_MIN+i,&min)) {
if (valid) {
print_label(label,10);
printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n",
cur,min,fdiv, alarms&BMC_ALARM_FAN1?"ALARM":"");
printf("%4.0f RPM (min = %4.0f RPM) %s\n",
cur,min,alarms&BMC_ALARM_FAN1?"ALARM":"");
}
}
free_the_label(&label);