Added sensor raw data in verbose mode. Useful for OEM sensor type.

This commit is contained in:
Marie-Josee Blais 2010-05-05 14:48:04 +00:00
parent 801e6f1136
commit 9f52686526

View File

@ -570,6 +570,12 @@ ipmi_sensor_print_compact(struct ipmi_intf *intf,
sensor->event_type,
rsp->data[2],
rsp->data[3]);
printf(" Raw Data: %X", rsp->data[1]);
if(rsp->data_len > 2)
printf(" %X", rsp->data[2]);
if(rsp->data_len > 3)
printf(" %X", rsp->data[3]);
printf("\n");
printf("\n");
} else {
printf(" Unable to read sensor: Device Not Present\n\n");