mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
John D. Blair fix to stop sensor list from reporting a failure due to missing sensors
This commit is contained in:
parent
a2e7888156
commit
d0155c3917
@ -154,8 +154,11 @@ ipmi_sensor_print_full_discrete(struct ipmi_intf *intf,
|
|||||||
rsp->data[2],
|
rsp->data[2],
|
||||||
rsp->data[3]);
|
rsp->data[3]);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
} else {
|
||||||
}
|
printf(" READ ERROR: Device Not Present\n\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (validread ? 0 : -1 );
|
return (validread ? 0 : -1 );
|
||||||
@ -373,7 +376,7 @@ ipmi_sensor_print_full_analog(struct ipmi_intf *intf,
|
|||||||
(" Upper Non-Recoverable : na\n");
|
(" Upper Non-Recoverable : na\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("Not Present\n");
|
printf(" READ ERROR: Device Not Present\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
ipmi_sdr_print_sensor_event_status(intf,
|
ipmi_sdr_print_sensor_event_status(intf,
|
||||||
@ -480,7 +483,10 @@ ipmi_sensor_print_compact(struct ipmi_intf *intf,
|
|||||||
rsp->data[2],
|
rsp->data[2],
|
||||||
rsp->data[3]);
|
rsp->data[3]);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
} else {
|
||||||
|
printf(" READ ERROR: Device Not Present\n\n");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -528,8 +534,9 @@ ipmi_sensor_list(struct ipmi_intf *intf)
|
|||||||
}
|
}
|
||||||
free(rec);
|
free(rec);
|
||||||
|
|
||||||
/* save any errors */
|
/* fix for CR6604909: */
|
||||||
rc = (r == 0) ? rc : r;
|
/* mask failure of individual reads in sensor list command */
|
||||||
|
/* rc = (r == 0) ? rc : r; */
|
||||||
}
|
}
|
||||||
|
|
||||||
ipmi_sdr_end(intf, itr);
|
ipmi_sdr_end(intf, itr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user