diff options
| author | Patrick Williams <patrick@stwcx.xyz> | 2026-04-14 14:26:31 +0300 |
|---|---|---|
| committer | Ed Tanous <ed@tanous.net> | 2026-04-15 04:50:54 +0300 |
| commit | 36498b406abb3be754e84072d50f16d9dcbbfa8f (patch) | |
| tree | e4e2744ceefa79581eddab2d12790f648231db3c /redfish-core/lib/processor.hpp | |
| parent | f2d97d5f96dc2adeda01cdc7eeff5d8fedc5d33a (diff) | |
| download | bmcweb-36498b406abb3be754e84072d50f16d9dcbbfa8f.tar.xz | |
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
* object_path
Change-Id: Iace20f9ad26e8d9dc234979e7a4087d599da2641
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'redfish-core/lib/processor.hpp')
| -rw-r--r-- | redfish-core/lib/processor.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/redfish-core/lib/processor.hpp b/redfish-core/lib/processor.hpp index 6b7db66263..987956005d 100644 --- a/redfish-core/lib/processor.hpp +++ b/redfish-core/lib/processor.hpp @@ -232,7 +232,7 @@ inline void getCpuDataByService( { BMCWEB_LOG_DEBUG("Get available system cpu resources by service."); - sdbusplus::message::object_path path("/xyz/openbmc_project/inventory"); + sdbusplus::object_path path("/xyz/openbmc_project/inventory"); dbus::utility::getManagedObjects( service, path, [cpuId, service, objPath, asyncResp{std::move(asyncResp)}]( @@ -600,7 +600,7 @@ inline void getCpuConfigData( nlohmann::json& json = asyncResp->res.jsonValue; - const sdbusplus::message::object_path* appliedConfig = nullptr; + const sdbusplus::object_path* appliedConfig = nullptr; const bool* baseSpeedPriorityEnabled = nullptr; const bool success = sdbusplus::unpackPropertiesNoThrow( @@ -753,7 +753,7 @@ inline void handleProcessorSubtree( for (const auto& [objectPath, serviceMap] : subtree) { // Ignore any objects which don't end with our desired cpu name - sdbusplus::message::object_path path(objectPath); + sdbusplus::object_path path(objectPath); if (path.filename() == processorId) { // Filter out objects that don't have the CPU-specific @@ -942,7 +942,7 @@ inline void patchAppliedOperatingConfig( // append to the CPU's path. std::string configBaseName = appliedConfigUri.buffer().substr(expectedPrefix.buffer().size()); - sdbusplus::message::object_path configPath(cpuObjectPath); + sdbusplus::object_path configPath(cpuObjectPath); configPath /= configBaseName; BMCWEB_LOG_INFO("Setting config to {}", configPath.str); |
