Fix DC power-on and -off MessageId format
The MessageId format is
RegistryName.MajorVersion.MinorVersion.MessageKey.
This change adds the RegistryName.MajorVersion.MinorVersion
before the DC power-on and -off MessageKeys.
Tested:
Verified that the DCPowerOn and DCPowerOff Redfish Message
entries are correctly displayed in the Redfish event log.
Change-Id: I5e2372f4c8e11ef024aeaa228731016530f05e19
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/include/pulse_event_monitor.hpp b/include/pulse_event_monitor.hpp
index 8b651dd..6f05e82 100644
--- a/include/pulse_event_monitor.hpp
+++ b/include/pulse_event_monitor.hpp
@@ -49,7 +49,7 @@
if (*variant == "xyz.openbmc_project.State.Host.HostState.Off")
{
std::string message("Host system DC power is off");
- std::string redfishMsgId("DCPowerOff");
+ std::string redfishMsgId("OpenBMC.0.1.DCPowerOff");
sd_journal_send("MESSAGE=%s", message.c_str(),
"REDFISH_MESSAGE_ID=%s", redfishMsgId.c_str(),
@@ -59,7 +59,7 @@
"xyz.openbmc_project.State.Host.HostState.Running")
{
std::string message("Host system DC power is on");
- std::string redfishMsgId("DCPowerOn");
+ std::string redfishMsgId("OpenBMC.0.1.DCPowerOn");
sd_journal_send("MESSAGE=%s", message.c_str(),
"REDFISH_MESSAGE_ID=%s", redfishMsgId.c_str(),