remove IPMI_CC
Since IPMI_CC declared in api.h has been gradually deprecated,
this submission will use ipmi::cc in api.hpp instead.
Change-Id: Iaaca85d13ebd1e114587fe64ec169ad92efc7f9d
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/storagehandler.cpp b/storagehandler.cpp
index a62f8f9..c13c760 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -289,7 +289,7 @@
if (*data_len != sizeof(ipmi::sel::GetSELEntryRequest))
{
*data_len = 0;
- return IPMI_CC_REQ_DATA_LEN_INVALID;
+ return ipmi::ccReqDataLenInvalid;
}
auto requestData =
@@ -300,7 +300,7 @@
if (!checkSELReservation(requestData->reservationID))
{
*data_len = 0;
- return IPMI_CC_INVALID_RESERVATION_ID;
+ return ipmi::ccInvalidReservationId;
}
}
@@ -313,7 +313,7 @@
if (selCacheMap.empty())
{
*data_len = 0;
- return IPMI_CC_SENSOR_INVALID;
+ return ipmi::ccSensorInvalid;
}
SELCacheMap::const_iterator iter;
@@ -342,7 +342,7 @@
if (iter == selCacheMap.end())
{
*data_len = 0;
- return IPMI_CC_SENSOR_INVALID;
+ return ipmi::ccSensorInvalid;
}
}
@@ -369,7 +369,7 @@
requestData->readLength > ipmi::sel::selRecordSize)
{
*data_len = 0;
- return IPMI_CC_INVALID_FIELD_REQUEST;
+ return ipmi::ccInvalidFieldRequest;
}
auto diff = ipmi::sel::selRecordSize - requestData->offset;