add clang-format to repo
Add clang-format to repo.
Change-Id: Ic856886375af1b92648932e7b7239272307d38f3
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/power-control/src/power_control.cpp b/power-control/src/power_control.cpp
index 74b64b8..df92108 100644
--- a/power-control/src/power_control.cpp
+++ b/power-control/src/power_control.cpp
@@ -31,12 +31,11 @@
phosphor::logging::entry("NEWSTATE=%d", newState));
return 0;
}
-
+
ret = ::lseek(power_up_fd, 0, SEEK_SET);
if (ret < 0)
{
- phosphor::logging::log<phosphor::logging::level::ERR>(
- "lseek error!");
+ phosphor::logging::log<phosphor::logging::level::ERR>("lseek error!");
throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
IOError();
}
@@ -54,20 +53,20 @@
if (ret < 0)
{
phosphor::logging::log<phosphor::logging::level::ERR>(
- "write error for setting 0 !");
+ "write error for setting 0 !");
throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
IOError();
}
std::this_thread::sleep_for(
- std::chrono::milliseconds(POWER_UP_PIN_PULSE_TIME_MS));
+ std::chrono::milliseconds(POWER_UP_PIN_PULSE_TIME_MS));
buf = '1';
ret = ::write(power_up_fd, &buf, sizeof(buf));
if (ret < 0)
{
phosphor::logging::log<phosphor::logging::level::ERR>(
- "write error for setting 1 !");
+ "write error for setting 1 !");
throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
IOError();
}