Move getErrCodeMsg API to common_utility
This commit moves the getErrCodeMsg API from vpd_specific_utility to
common_utility file, to make it accessible to the other utility files.
Change-Id: Ib0aeeb2386ba2c55f2447d65a3be18b76eff46f3
Signed-off-by: Rekha Aparna <vrekhaaparna@ibm.com>
diff --git a/vpd-manager/src/gpio_monitor.cpp b/vpd-manager/src/gpio_monitor.cpp
index 9e00be7..9850276 100644
--- a/vpd-manager/src/gpio_monitor.cpp
+++ b/vpd-manager/src/gpio_monitor.cpp
@@ -52,7 +52,7 @@
{
throw std::runtime_error(
"Failed to get inventory path from JSON, error : " +
- vpdSpecificUtility::getErrCodeMsg(l_errCode));
+ commonUtility::getErrCodeMsg(l_errCode));
}
m_worker->deleteFruVpd(l_invPath);
@@ -90,7 +90,7 @@
{
logging::logMessage("processGpioPresenceTag returned false for FRU [" +
m_fruPath + "] Due to error. Reason: " +
- vpdSpecificUtility::getErrCodeMsg(l_errCode));
+ commonUtility::getErrCodeMsg(l_errCode));
}
if (m_prevPresencePinValue != l_currentPresencePinValue)
@@ -118,7 +118,7 @@
{
logging::logMessage("processGpioPresenceTag returned false for FRU [" +
m_fruPath + "] Due to error. Reason: " +
- vpdSpecificUtility::getErrCodeMsg(l_errCode));
+ commonUtility::getErrCodeMsg(l_errCode));
}
static std::vector<std::shared_ptr<boost::asio::steady_timer>> l_timers;
@@ -145,7 +145,7 @@
{
logging::logMessage(
"Failed to get list of frus required for gpio polling. Error : " +
- vpdSpecificUtility::getErrCodeMsg(l_errCode));
+ commonUtility::getErrCodeMsg(l_errCode));
return;
}