Files
OpenBMC/meta-luxshare/meta-common/recipes-luxshare/leds/phosphor-led-manager/0001-Remove-dissen-path-update-sensor-status.patch
T
2026-04-23 17:07:55 +08:00

26 lines
1.2 KiB
Diff
Executable File

diff --git a/fault-monitor/fru-fault-monitor.cpp b/fault-monitor/fru-fault-monitor.cpp
index 3c63735..d5d6703 100644
--- a/fault-monitor/fru-fault-monitor.cpp
+++ b/fault-monitor/fru-fault-monitor.cpp
@@ -181,7 +181,7 @@ static void setDiscreteSensorStatusValue(sdbusplus::bus::bus& bus,
// ipmi spec 42.2 set the sensor-specific offset
double statusValue = reserved;
- constexpr auto service = "xyz.openbmc_project.dissen";
+ constexpr auto service = "xyz.openbmc_project.EntityManager";
constexpr auto dbusProperties = "org.freedesktop.DBus.Properties";
constexpr auto statusInterface = "xyz.openbmc_project.Configuration.Status";
@@ -487,11 +487,6 @@ void Add::filterSEL(sdbusplus::bus::bus& bus, const std::string& path)
if (std::string::npos != nStr)
{
sensorPath = item.substr(nStr + strlen("SENSOR_PATH="));
- std::string sensorPathTmp = sensorPath;
- size_t pos = sensorPathTmp.rfind('/');
- if (pos != std::string::npos){
- sensorPath = "/xyz/openbmc_project/sensors/status/" + sensorPathTmp.substr(pos + 1);
- }
std::cerr << "sensorPath " << sensorPath <<"\n";
}
}