diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2018-09-14 14:50:03 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-10-18 16:43:22 -0400 |
commit | 94df8c9015798764d40665bb363bdbf27510f285 (patch) | |
tree | ce26611a482f2f03a582838faec29eeb065a6c47 /occ_status.cpp | |
parent | 7db89e36d7c5649b826b607cb2d90e38bb02ab86 (diff) | |
download | openpower-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_status.cpp')
-rw-r--r-- | occ_status.cpp | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/occ_status.cpp b/occ_status.cpp index 26f2979..c2c4bae 100644 --- a/occ_status.cpp +++ b/occ_status.cpp @@ -1,7 +1,9 @@ -#include <phosphor-logging/log.hpp> #include "occ_status.hpp" + #include "occ_sensor.hpp" #include "utils.hpp" + +#include <phosphor-logging/log.hpp> namespace open_power { namespace occ @@ -87,17 +89,13 @@ void Status::resetOCC() // This will throw exception on failure auto service = getService(bus, CONTROL_HOST_PATH, CONTROL_HOST_INTF); - auto method = bus.new_method_call(service.c_str(), - CONTROL_HOST_PATH, - CONTROL_HOST_INTF, - "Execute"); + auto method = bus.new_method_call(service.c_str(), CONTROL_HOST_PATH, + CONTROL_HOST_INTF, "Execute"); // OCC Reset control command - method.append(convertForMessage( - Control::Host::Command::OCCReset).c_str()); + method.append(convertForMessage(Control::Host::Command::OCCReset).c_str()); // OCC Sensor ID for callout reasons - method.append(sdbusplus::message::variant<uint8_t>( - sensorMap.at(instance))); + method.append(sdbusplus::message::variant<uint8_t>(sensorMap.at(instance))); bus.call_noreply(method); return; } @@ -114,19 +112,19 @@ void Status::hostControlEvent(sdbusplus::message::message& msg) msg.read(cmdCompleted, cmdStatus); log<level::DEBUG>("Host control signal values", - entry("COMMAND=%s",cmdCompleted.c_str()), - entry("STATUS=%s",cmdStatus.c_str())); + entry("COMMAND=%s", cmdCompleted.c_str()), + entry("STATUS=%s", cmdStatus.c_str())); - if(Control::Host::convertResultFromString(cmdStatus) != - Control::Host::Result::Success) + if (Control::Host::convertResultFromString(cmdStatus) != + Control::Host::Result::Success) { - if(Control::Host::convertCommandFromString(cmdCompleted) == - Control::Host::Command::OCCReset) + if (Control::Host::convertCommandFromString(cmdCompleted) == + Control::Host::Command::OCCReset) { // Must be a Timeout. Log an Error trace log<level::ERR>("Error resetting the OCC.", - entry("PATH=%s", path.c_str()), - entry("SENSORID=0x%X",sensorMap.at(instance))); + entry("PATH=%s", path.c_str()), + entry("SENSORID=0x%X", sensorMap.at(instance))); } } return; |