diff options
author | Chen Yugang <yugang.chen@linux.intel.com> | 2019-09-02 15:59:23 +0300 |
---|---|---|
committer | Chen, Yugang <yugang.chen@intel.com> | 2019-09-02 10:12:11 +0300 |
commit | 984cc72566a06d6c87e2f3f8e95810367c079146 (patch) | |
tree | 7bbdc6e82594d629ae880851afacb33f422c1b73 | |
parent | c47789dcd9efbeb088915d77fb1f60c01d0cfdbc (diff) | |
download | provingground-984cc72566a06d6c87e2f3f8e95810367c079146.tar.xz |
Change name from SSBThermtrip to SsbThermalTrip
Redfish's log entry is required to name as "SsbThermalTrip", so it's
needed to update the corresponding log name in calling function.
it's depended on the following change:
https://gerrit.openbmc-project.xyz/#/c/openbmc/bmcweb/+/24154/4/
redfish-core/include/registries/openbmc_message_registry.hpp
Tested:
Log shows the signal is triggered while hoting PCH.
Change-Id: If5d58189cde4bbb8732461c95cfd7399ca6dd323
Signed-off-by: Chen Yugang <yugang.chen@linux.intel.com>
-rw-r--r-- | host_error_monitor/src/host_error_monitor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host_error_monitor/src/host_error_monitor.cpp b/host_error_monitor/src/host_error_monitor.cpp index ed32947..4c44007 100644 --- a/host_error_monitor/src/host_error_monitor.cpp +++ b/host_error_monitor/src/host_error_monitor.cpp @@ -324,11 +324,11 @@ static void pchThermtripHandler() gpioLineEvent.event_type == gpiod::line_event::FALLING_EDGE; if (pchThermtrip) { - std::cout << "PCH Thermtrip detected \n"; + std::cout << "PCH Thermal trip detected \n"; // log to redfish, call API - sd_journal_send("MESSAGE=SSBThermtrip: SSB Thermtrip", + sd_journal_send("MESSAGE=SsbThermalTrip: SSB Thermal trip", "PRIORITY=%i", LOG_INFO, "REDFISH_MESSAGE_ID=%s", - "OpenBMC.0.1.SSBThermtrip", NULL); + "OpenBMC.0.1.SsbThermalTrip", NULL); } } pchThermtripEvent.async_wait( @@ -336,7 +336,7 @@ static void pchThermtripHandler() [](const boost::system::error_code ec) { if (ec) { - std::cerr << "PCH Thermtrip handler error: " << ec.message() + std::cerr << "PCH Thermal trip handler error: " << ec.message() << "\n"; return; } |