ID:388 - Fix Error message always printed if BMC does not support VITA

Print error message for 0xC1 to LOG_DEBUG instead of LOG_ERR, because it isn't
an error if VITA isn't supported.
This commit is contained in:
Zdenek Styblik
2015-09-11 06:00:44 +02:00
parent 0caa68115e
commit 372b458e0f

View File

@ -192,6 +192,9 @@ vita_discover(struct ipmi_intf *intf)
if (rsp == NULL) { if (rsp == NULL) {
lprintf(LOG_ERR, "No valid response received"); lprintf(LOG_ERR, "No valid response received");
} else if (rsp->ccode == 0xC1) {
lprintf(LOG_DEBUG, "Invalid completion code received: %s",
val2str(rsp->ccode, completion_code_vals));
} else if (rsp->ccode != 0) { } else if (rsp->ccode != 0) {
lprintf(LOG_ERR, "Invalid completion code received: %s", lprintf(LOG_ERR, "Invalid completion code received: %s",
val2str(rsp->ccode, completion_code_vals)); val2str(rsp->ccode, completion_code_vals));