summaryrefslogtreecommitdiffstats
path: root/occ_pass_through.cpp
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-06-29 18:35:00 +0530
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-07-29 23:57:59 +0530
commitee4d83dfc7b6cf3b5979541ab5b1918b68e6bbdb (patch)
tree4d186ddf133d77880e857fccdddb71fcc155a6bf /occ_pass_through.cpp
parent554d60059e7d0b699b3cdcbe8de2c341613e9931 (diff)
downloadopenpower-occ-control-ee4d83dfc7b6cf3b5979541ab5b1918b68e6bbdb.tar.gz
openpower-occ-control-ee4d83dfc7b6cf3b5979541ab5b1918b68e6bbdb.zip
Add support to watch for OCC errors
Change-Id: I98d95020a2d01e281e5c8efa825d6b4bd4c6c160 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'occ_pass_through.cpp')
-rw-r--r--occ_pass_through.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/occ_pass_through.cpp b/occ_pass_through.cpp
index fbb98c2..2846dda 100644
--- a/occ_pass_through.cpp
+++ b/occ_pass_through.cpp
@@ -4,7 +4,7 @@
#include <errno.h>
#include <phosphor-logging/log.hpp>
#include <phosphor-logging/elog.hpp>
-#include <org/open_power/OCC/PassThrough/error.hpp>
+#include <org/open_power/OCC/Device/error.hpp>
#include "occ_pass_through.hpp"
#include "elog-errors.hpp"
namespace open_power
@@ -25,7 +25,7 @@ PassThrough::PassThrough(
int PassThrough::openDevice()
{
using namespace phosphor::logging;
- using namespace sdbusplus::org::open_power::OCC::PassThrough::Error;
+ using namespace sdbusplus::org::open_power::OCC::Device::Error;
// Device instance number starts from 1.
devicePath.append(std::to_string((this->path.back() - '0') + 1));
@@ -35,9 +35,9 @@ int PassThrough::openDevice()
{
// This would log and terminate since its not handled.
elog<OpenFailure>(
- phosphor::logging::org::open_power::OCC::PassThrough::
+ phosphor::logging::org::open_power::OCC::Device::
OpenFailure::CALLOUT_ERRNO(errno),
- phosphor::logging::org::open_power::OCC::PassThrough::
+ phosphor::logging::org::open_power::OCC::Device::
OpenFailure::CALLOUT_DEVICE_PATH(devicePath.c_str()));
}
return fd;
@@ -46,7 +46,7 @@ int PassThrough::openDevice()
std::vector<int32_t> PassThrough::send(std::vector<int32_t> command)
{
using namespace phosphor::logging;
- using namespace sdbusplus::org::open_power::OCC::PassThrough::Error;
+ using namespace sdbusplus::org::open_power::OCC::Device::Error;
std::vector<int32_t> response {};
@@ -65,9 +65,9 @@ std::vector<int32_t> PassThrough::send(std::vector<int32_t> command)
{
// This would log and terminate since its not handled.
elog<WriteFailure>(
- phosphor::logging::org::open_power::OCC::PassThrough::
+ phosphor::logging::org::open_power::OCC::Device::
WriteFailure::CALLOUT_ERRNO(errno),
- phosphor::logging::org::open_power::OCC::PassThrough::
+ phosphor::logging::org::open_power::OCC::Device::
WriteFailure::CALLOUT_DEVICE_PATH(devicePath.c_str()));
}
@@ -95,9 +95,9 @@ std::vector<int32_t> PassThrough::send(std::vector<int32_t> command)
{
// This would log and terminate since its not handled.
elog<ReadFailure>(
- phosphor::logging::org::open_power::OCC::PassThrough::
+ phosphor::logging::org::open_power::OCC::Device::
ReadFailure::CALLOUT_ERRNO(errno),
- phosphor::logging::org::open_power::OCC::PassThrough::
+ phosphor::logging::org::open_power::OCC::Device::
ReadFailure::CALLOUT_DEVICE_PATH(devicePath.c_str()));
}
}
OpenPOWER on IntegriCloud