Fix signal monitor init when power-control is not available
On start-up if power-control is not available, the signal monitors
don't get initialized correctly. This changes so if power-control
is not available on start-up, init is handled when power-control
starts.
Also fix an error log to print in decimal.
Tested:
Manually started power-control after host-error-monitor and
confirmed that the signal monitors start correctly.
Change-Id: I34784258e43cd2166fb4921cab06708ce9f78174
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/include/host_error_monitor.hpp b/include/host_error_monitor.hpp
index 336af02..8710a44 100644
--- a/include/host_error_monitor.hpp
+++ b/include/host_error_monitor.hpp
@@ -106,9 +106,9 @@
static void printPECIError(const std::string& reg, const size_t addr,
const EPECIStatus peciStatus, const size_t cc)
{
- std::cerr << "Failed to read " << reg << " on CPU address " << addr
- << ". Error: " << peciStatus << ": cc: 0x" << std::hex << cc
- << "\n";
+ std::cerr << "Failed to read " << reg << " on CPU address " << std::dec
+ << addr << ". Error: " << peciStatus << ": cc: 0x" << std::hex
+ << cc << "\n";
}
static void beep(std::shared_ptr<sdbusplus::asio::connection> conn,