diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-05-25 16:39:22 +0930 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2019-03-18 15:27:01 +1030 |
commit | c41bf5b7fdf4599101fe31e7d2e998aebfca7f92 (patch) | |
tree | 85eef0553a865a57ab126cbc6a4386e03a63100c /controller.cpp | |
parent | e0844ff447abad01fa6f902caab3839336d1518d (diff) | |
download | phosphor-led-sysfs-c41bf5b7fdf4599101fe31e7d2e998aebfca7f92.tar.gz phosphor-led-sysfs-c41bf5b7fdf4599101fe31e7d2e998aebfca7f92.zip |
Add OpenBMC C++ clang-format file and format code
Change-Id: Ib3a388bf5392159440682265b577fba023c3c3aa
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'controller.cpp')
-rw-r--r-- | controller.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/controller.cpp b/controller.cpp index f0ba4c2..f945034 100644 --- a/controller.cpp +++ b/controller.cpp @@ -14,12 +14,14 @@ * limitations under the License. */ -#include <iostream> -#include <string> -#include <algorithm> +#include "config.h" + #include "argument.hpp" #include "physical.hpp" -#include "config.h" + +#include <algorithm> +#include <iostream> +#include <string> static void ExitWithError(const char* err, char** argv) { @@ -68,8 +70,8 @@ int main(int argc, char** argv) std::replace(name.begin(), name.end(), '-', '_'); // Unique bus name representing a single LED. - auto busName = std::string(BUSNAME) + '.' + name; - auto objPath = std::string(OBJPATH) + '/' + name; + auto busName = std::string(BUSNAME) + '.' + name; + auto objPath = std::string(OBJPATH) + '/' + name; // Get a handle to system dbus. auto bus = std::move(sdbusplus::bus::new_default()); @@ -85,7 +87,7 @@ int main(int argc, char** argv) bus.request_name(busName.c_str()); /** @brief Wait for client requests */ - while(true) + while (true) { // Handle dbus message / signals discarding unhandled bus.process_discard(); |