control: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang
format.
Tested: Compiled
Change-Id: Ic9d621d7c5647bde0a92c5f17938c99deeca0512
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/main.cpp b/control/main.cpp
index 4420488..05dce98 100644
--- a/control/main.cpp
+++ b/control/main.cpp
@@ -13,13 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#include <sdbusplus/bus.hpp>
-#include <sdeventplus/event.hpp>
-#include <phosphor-logging/log.hpp>
#include "argument.hpp"
#include "manager.hpp"
#include "sdbusplus.hpp"
+#include <phosphor-logging/log.hpp>
+#include <sdbusplus/bus.hpp>
+#include <sdeventplus/event.hpp>
+
using namespace phosphor::fan::control;
using namespace phosphor::logging;
@@ -51,15 +52,15 @@
return 1;
}
- //Attach the event object to the bus object so we can
- //handle both sd_events (for the timers) and dbus signals.
+ // Attach the event object to the bus object so we can
+ // handle both sd_events (for the timers) and dbus signals.
bus.attach_event(event.get(), SD_EVENT_PRIORITY_NORMAL);
try
{
Manager manager(bus, event, mode);
- //Init mode will just set fans to max and delay
+ // Init mode will just set fans to max and delay
if (mode == Mode::init)
{
manager.doInit();
@@ -68,29 +69,29 @@
return event.loop();
}
- //Log the useful metadata on these exceptions and let the app
- //return 1 so it is restarted without a core dump.
+ // Log the useful metadata on these exceptions and let the app
+ // return 1 so it is restarted without a core dump.
catch (phosphor::fan::util::DBusServiceError& e)
{
log<level::ERR>("Uncaught DBus service lookup failure exception",
- entry("PATH=%s", e.path.c_str()),
- entry("INTERFACE=%s", e.interface.c_str()));
+ entry("PATH=%s", e.path.c_str()),
+ entry("INTERFACE=%s", e.interface.c_str()));
}
catch (phosphor::fan::util::DBusMethodError& e)
{
log<level::ERR>("Uncaught DBus method failure exception",
- entry("BUSNAME=%s", e.busName.c_str()),
- entry("PATH=%s", e.path.c_str()),
- entry("INTERFACE=%s", e.interface.c_str()),
- entry("METHOD=%s", e.method.c_str()));
+ entry("BUSNAME=%s", e.busName.c_str()),
+ entry("PATH=%s", e.path.c_str()),
+ entry("INTERFACE=%s", e.interface.c_str()),
+ entry("METHOD=%s", e.method.c_str()));
}
catch (phosphor::fan::util::DBusPropertyError& e)
{
log<level::ERR>("Uncaught DBus property access failure exception",
- entry("BUSNAME=%s", e.busName.c_str()),
- entry("PATH=%s", e.path.c_str()),
- entry("INTERFACE=%s", e.interface.c_str()),
- entry("PROPERTY=%s", e.property.c_str()));
+ entry("BUSNAME=%s", e.busName.c_str()),
+ entry("PATH=%s", e.path.c_str()),
+ entry("INTERFACE=%s", e.interface.c_str()),
+ entry("PROPERTY=%s", e.property.c_str()));
}
return 1;