mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-12 11:37:23 +00:00
only decode sensor-specific states
This commit is contained in:
parent
5298b1ca71
commit
30eec7d0ac
@ -838,6 +838,10 @@ ipmi_sdr_print_sensor_compact(struct ipmi_intf * intf,
|
|||||||
state = csv_output ?
|
state = csv_output ?
|
||||||
"Not Readable" :
|
"Not Readable" :
|
||||||
"Not Readable ";
|
"Not Readable ";
|
||||||
|
} else {
|
||||||
|
if (sensor->event_type != 0x6f) {
|
||||||
|
sprintf(temp, "0x%02x", rsp->data[2]);
|
||||||
|
state = temp;
|
||||||
} else {
|
} else {
|
||||||
switch (sensor->sensor.type) {
|
switch (sensor->sensor.type) {
|
||||||
case 0x07: /* processor */
|
case 0x07: /* processor */
|
||||||
@ -880,6 +884,7 @@ ipmi_sdr_print_sensor_compact(struct ipmi_intf * intf,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (csv_output)
|
if (csv_output)
|
||||||
printf("%s,", sensor->id_code ? desc : "");
|
printf("%s,", sensor->id_code ? desc : "");
|
||||||
@ -2322,6 +2327,8 @@ ipmi_sdr_dump_bin(struct ipmi_intf * intf, const char * ofile)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ipmi_sdr_end(intf, itr);
|
||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user