sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I7ae6214461bdf45c1a21fb702cc8bf5578d827c6
diff --git a/dump_utils.cpp b/dump_utils.cpp
index c642a47..a0ada8a 100644
--- a/dump_utils.cpp
+++ b/dump_utils.cpp
@@ -11,7 +11,7 @@
using namespace phosphor::logging;
-std::string getService(sdbusplus::bus::bus& bus, const std::string& path,
+std::string getService(sdbusplus::bus_t& bus, const std::string& path,
const std::string& interface)
{
constexpr auto objectMapperName = "xyz.openbmc_project.ObjectMapper";
@@ -38,7 +38,7 @@
return std::string{};
}
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
log<level::ERR>(fmt::format("Error in mapper method call, "
"errormsg({}), PATH({}), INTERFACE({})",
@@ -84,7 +84,7 @@
bootProgessStage = sdbusplus::xyz::openbmc_project::State::Boot::
server::Progress::convertProgressStagesFromString(bootPgs);
}
- catch (const sdbusplus::exception::exception& e)
+ catch (const sdbusplus::exception_t& e)
{
log<level::ERR>(fmt::format("D-Bus call exception, OBJPATH({}), "
"INTERFACE({}), EXCEPTION({})",