From 5fb14603817baad7418b627ca41927d9ec7c4fc9 Mon Sep 17 00:00:00 2001 From: Aditya Saripalli Date: Thu, 9 Nov 2017 14:46:27 +0530 Subject: Reducing IPMI logging footprint -host-ipmid is very noisy in terms of journal logging. A small step towards cleaning that up. -Also converted printfs to phosphor-logging. Partially Resolves openbmc/openbmc#2507 Change-Id: I749c19c18d1cabf6f0216830c8cb0a08ee43d6de Signed-off-by: Aditya Saripalli Signed-off-by: Nagaraju Goruganti --- softoff/softoff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'softoff/softoff.cpp') diff --git a/softoff/softoff.cpp b/softoff/softoff.cpp index 4a3166c..f76cd4f 100644 --- a/softoff/softoff.cpp +++ b/softoff/softoff.cpp @@ -81,7 +81,7 @@ void SoftPowerOff::hostControlEvent(sdbusplus::message::message& msg) if (r < 0) { log("Failure to start Host shutdown wait timer", - entry("ERROR=%s", strerror(-r))); + entry("ERRNO=0x%X", -r)); } else { @@ -120,7 +120,7 @@ auto SoftPowerOff::responseReceived(HostResponse response) -> HostResponse if (r < 0) { log("Failure to STOP the timer", - entry("ERROR=%s", strerror(-r))); + entry("ERRNO=0x%X", -r)); } // This marks the completion of soft power off sequence. -- cgit v1.2.1