From c0e63cefbbbf0b15c920564dc9363363aac8fde1 Mon Sep 17 00:00:00 2001 From: Jean-Michel Audet Date: Mon, 3 May 2010 14:07:36 +0000 Subject: [PATCH] - Remove message for unsupported PEF capabilities that return valid CC (80h) --- ipmitool/lib/ipmi_pef.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipmitool/lib/ipmi_pef.c b/ipmitool/lib/ipmi_pef.c index fa96688..c8a8919 100644 --- a/ipmitool/lib/ipmi_pef.c +++ b/ipmitool/lib/ipmi_pef.c @@ -191,7 +191,10 @@ ipmi_pef_msg_exchange(struct ipmi_intf * intf, struct ipmi_rq * req, char * txt) struct ipmi_rs * rsp = intf->sendrecv(intf, req); if (!rsp) return(NULL); - if (rsp->ccode) { + if (rsp->ccode == 0x80) { + return(NULL); /* Do not output error, just unsupported parameters */ + } + else if (rsp->ccode) { lprintf(LOG_ERR, " **Error %x in '%s' command", rsp ? rsp->ccode : 0, txt); return(NULL); @@ -803,6 +806,7 @@ ipmi_pef_get_info(struct ipmi_intf * intf) if (!rsp) return; pcap = (struct pef_capabilities *)rsp->data; + ipmi_pef_print_1xd("Version", pcap->version); ipmi_pef_print_dec("PEF table size", pcap->tblsize); ipmi_pef_print_dec("Alert policy table size", tbl_size);