use PDI constants for ObjectMapper
PDI already defines the constants we need here, use those instead of
duplicating.
Tested: Inspection only.
Change-Id: I86ad46a4aac757aa7b377b1e1709088a1e457102
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/selutility.cpp b/selutility.cpp
index 944b21c..9efd391 100644
--- a/selutility.cpp
+++ b/selutility.cpp
@@ -8,6 +8,7 @@
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/lg2.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
+#include <xyz/openbmc_project/ObjectMapper/common.hpp>
#include <charconv>
#include <chrono>
@@ -19,6 +20,8 @@
using InternalFailure =
sdbusplus::error::xyz::openbmc_project::common::InternalFailure;
+using ObjectMapper = sdbusplus::common::xyz::openbmc_project::ObjectMapper;
+
namespace
{
@@ -374,8 +377,10 @@
auto depth = 0;
paths.clear();
- auto mapperCall = bus.new_method_call(mapperBusName, mapperObjPath,
- mapperIntf, "GetSubTreePaths");
+ auto mapperCall = bus.new_method_call(
+ ObjectMapper::default_service, ObjectMapper::instance_path,
+ ObjectMapper::interface,
+ ObjectMapper::method_names::get_sub_tree_paths);
mapperCall.append(logBasePath);
mapperCall.append(depth);
mapperCall.append(ObjectPaths({logEntryIntf}));