diff options
author | Patrick Venture <venture@google.com> | 2018-10-26 18:14:00 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-26 18:16:27 -0700 |
commit | f18bf836d206b1bc5b4fd849127a2e706eddf0aa (patch) | |
tree | 5c61f65861a2350f84080f21c6b996d33d0c2ab3 /elog.cpp | |
parent | aabb92ef56c4faa8f05487e9fcdf83f1053f1a22 (diff) | |
download | phosphor-logging-f18bf836d206b1bc5b4fd849127a2e706eddf0aa.tar.gz phosphor-logging-f18bf836d206b1bc5b4fd849127a2e706eddf0aa.zip |
add .clang-format
Change-Id: I2c36b7886a25d0b235693b0776019d29608e1d52
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'elog.cpp')
-rw-r--r-- | elog.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -1,4 +1,5 @@ #include "config.h" + #include <phosphor-logging/elog.hpp> #include <stdexcept> @@ -17,16 +18,14 @@ auto _prepareMsg(const char* funcName) constexpr auto MAPPER_PATH = "/xyz/openbmc_project/object_mapper"; constexpr auto MAPPER_INTERFACE = "xyz.openbmc_project.ObjectMapper"; - constexpr auto IFACE_INTERNAL("xyz.openbmc_project.Logging.Internal.Manager"); + constexpr auto IFACE_INTERNAL( + "xyz.openbmc_project.Logging.Internal.Manager"); // Transaction id is located at the end of the string separated by a period. auto b = sdbusplus::bus::new_default(); - auto mapper = b.new_method_call( - MAPPER_BUSNAME, - MAPPER_PATH, - MAPPER_INTERFACE, - "GetObject"); + auto mapper = b.new_method_call(MAPPER_BUSNAME, MAPPER_PATH, + MAPPER_INTERFACE, "GetObject"); mapper.append(OBJ_INTERNAL, std::vector<std::string>({IFACE_INTERNAL})); auto mapperResponseMsg = b.call(mapper); @@ -43,12 +42,9 @@ auto _prepareMsg(const char* funcName) } const auto& host = mapperResponse.cbegin()->first; - auto m = b.new_method_call( - host.c_str(), - OBJ_INTERNAL, - IFACE_INTERNAL, - funcName); - return m; + auto m = + b.new_method_call(host.c_str(), OBJ_INTERNAL, IFACE_INTERNAL, funcName); + return m; } void commit(const char* name) @@ -78,4 +74,3 @@ void commit(std::string&& name) } // namespace logging } // namespace phosphor - |