regulators: Modify monitorSensors() to use Services
Modify the monitorSensors() method in the System, Chassis, Device, and
Rail classes to have a new first parameter: Services& services.
Modify SensorMonitoring::execute() to log messages using the new
Journal interface.
Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I05820cfa94bc3d15dee7a1714a3d253720aa7f92
diff --git a/phosphor-regulators/src/chassis.cpp b/phosphor-regulators/src/chassis.cpp
index 4a016e6..eb7f496 100644
--- a/phosphor-regulators/src/chassis.cpp
+++ b/phosphor-regulators/src/chassis.cpp
@@ -56,12 +56,12 @@
}
}
-void Chassis::monitorSensors(System& system)
+void Chassis::monitorSensors(Services& services, System& system)
{
// Monitor sensors in each device
for (std::unique_ptr<Device>& device : devices)
{
- device->monitorSensors(system, *this);
+ device->monitorSensors(services, system, *this);
}
}