Change EM's ObjectManager path
In newest Openbmc version, intelcpusensor will send error log:
intelcpusensor[2634]: While calling GetManagedObjects on
service:xyz.openbmc_project.EntityManager exception
name:org.freedesktop.DBus.Error.UnknownObjectand
description:Unknown object '/'. was thrown/.
After PR https://gerrit.openbmc.org/c/openbmc/entity-manager/+/57279
merged into Openbmc master, dbus path of "GetManagedObjects" is changed.
Refs:
https://gerrit.openbmc.org/c/openbmc/entity-manager/+/57279
https://gerrit.openbmc.org/c/openbmc/dbus-sensors/+/57291
Tested:
Check ADC, Hwmon, PSU and IntelCPU snesor works good with no
GetManagedObjects error.
Signed-off-by: JeffLin <JeffLin2@quantatw.com>
Change-Id: I9c4d9109377d5210fdd941efc051fa7021b40bd9
diff --git a/src/MCUTempSensor.cpp b/src/MCUTempSensor.cpp
index ba68bed..2c28fe0 100644
--- a/src/MCUTempSensor.cpp
+++ b/src/MCUTempSensor.cpp
@@ -250,8 +250,8 @@
}
}
},
- entityManagerName, "/", "org.freedesktop.DBus.ObjectManager",
- "GetManagedObjects");
+ entityManagerName, "/xyz/openbmc_project/inventory",
+ "org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
}
int main()