diff options
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 - |