Modify event record to show Host state off/on
Summary:
Unexpected DC power is off/on during host
power reset.
Change the event record to "HostX state is
off/on" for the host state.
Tested:
Check SEL event during host power reset and
DC power cycle - pass.
Change-Id: I23f851c7d68333382bd3ce9cf7bcef2cbb4687d9
Signed-off-by: Zoey YJ Chung <zoey.yj.chung.wiwynn@gmail.com>
diff --git a/include/pulse_event_monitor.hpp b/include/pulse_event_monitor.hpp
index 131dc76..301515e 100644
--- a/include/pulse_event_monitor.hpp
+++ b/include/pulse_event_monitor.hpp
@@ -58,13 +58,13 @@
if (*variant == "xyz.openbmc_project.State.Host.HostState.Off")
{
- journalMsg += " system DC power is off";
+ journalMsg += " state is off";
redfishMsgId = "OpenBMC.0.1.DCPowerOff";
}
else if (*variant ==
"xyz.openbmc_project.State.Host.HostState.Running")
{
- journalMsg += " system DC power is on";
+ journalMsg += " state is on";
redfishMsgId = "OpenBMC.0.1.DCPowerOn";
}
else