summaryrefslogtreecommitdiffstats
path: root/occ_presence.cpp
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-09-14 14:50:03 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-10-18 16:43:22 -0400
commit94df8c9015798764d40665bb363bdbf27510f285 (patch)
treece26611a482f2f03a582838faec29eeb065a6c47 /occ_presence.cpp
parent7db89e36d7c5649b826b607cb2d90e38bb02ab86 (diff)
downloadopenpower-occ-control-94df8c9015798764d40665bb363bdbf27510f285.tar.gz
openpower-occ-control-94df8c9015798764d40665bb363bdbf27510f285.zip
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting Change-Id: Id6760866dedbaeafd83ea8ef2e0303e30b8955aa Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
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