mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3600928 - 'lib/ipmi_pef.c' handle unrecognized event trigger
Commit adds code to handle unrecognized event trigger in ipmi_pef_print_event_info(). Reported-by: Ales Ledvinka
This commit is contained in:
parent
ed1865da0a
commit
4c009309eb
@ -566,7 +566,11 @@ ipmi_pef_print_event_info(struct pef_cfgparm_filter_table_entry * pef, char * bu
|
|||||||
p = strchr(buf, '\0');
|
p = strchr(buf, '\0');
|
||||||
for (i=0; i<PEF_B2S_GENERIC_ER_ENTRIES; i++) {
|
for (i=0; i<PEF_B2S_GENERIC_ER_ENTRIES; i++) {
|
||||||
if (offmask & 1) {
|
if (offmask & 1) {
|
||||||
sprintf(p, ",%s", ipmi_pef_bit_desc(pef_b2s_generic_ER[t-1], i));
|
if ((t-1) >= PEF_B2S_GENERIC_ER_ENTRIES) {
|
||||||
|
sprintf(p, ", Unrecognized event trigger");
|
||||||
|
} else {
|
||||||
|
sprintf(p, ",%s", ipmi_pef_bit_desc(pef_b2s_generic_ER[t-1], i));
|
||||||
|
}
|
||||||
p = strchr(p, '\0');
|
p = strchr(p, '\0');
|
||||||
}
|
}
|
||||||
offmask >>= 1;
|
offmask >>= 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user