summaryrefslogtreecommitdiffstats
path: root/occ_presence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'occ_presence.cpp')
-rw-r--r--occ_presence.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/occ_presence.cpp b/occ_presence.cpp
index 59b886a..ab9b322 100644
--- a/occ_presence.cpp
+++ b/occ_presence.cpp
@@ -1,14 +1,17 @@
+#include "occ_presence.hpp"
+
+#include "elog-errors.hpp"
+#include "occ_manager.hpp"
+
+#include <errno.h>
#include <fcntl.h>
-#include <unistd.h>
#include <sys/ioctl.h>
-#include <errno.h>
-#include <phosphor-logging/log.hpp>
+#include <unistd.h>
+
+#include <org/open_power/OCC/Device/error.hpp>
#include <phosphor-logging/elog.hpp>
+#include <phosphor-logging/log.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
-#include <org/open_power/OCC/Device/error.hpp>
-#include "occ_presence.hpp"
-#include "occ_manager.hpp"
-#include "elog-errors.hpp"
namespace open_power
{
@@ -27,10 +30,10 @@ void Presence::analyzeEvent()
if (r < 0)
{
elog<ConfigFailure>(
- phosphor::logging::org::open_power::OCC::Device::
- ConfigFailure::CALLOUT_ERRNO(errno),
- phosphor::logging::org::open_power::OCC::Device::
- ConfigFailure::CALLOUT_DEVICE_PATH(file.c_str()));
+ phosphor::logging::org::open_power::OCC::Device::ConfigFailure::
+ CALLOUT_ERRNO(errno),
+ phosphor::logging::org::open_power::OCC::Device::ConfigFailure::
+ CALLOUT_DEVICE_PATH(file.c_str()));
}
auto data = readFile(len);
OpenPOWER on IntegriCloud