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 --- host-cmd-manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'host-cmd-manager.cpp') diff --git a/host-cmd-manager.cpp b/host-cmd-manager.cpp index 500e57d..799f9bf 100644 --- a/host-cmd-manager.cpp +++ b/host-cmd-manager.cpp @@ -46,7 +46,7 @@ IpmiCmdData Manager::getNextCommand() { // Just return a heartbeat in this case. A spurious SMS_ATN was // asserted for the host (probably from a previous boot). - log("Control Host work queue is empty!"); + log("Control Host work queue is empty!"); return std::make_pair(CMD_HEARTBEAT, 0x00); } @@ -95,7 +95,7 @@ void Manager::checkQueueAndAlertHost() { if (this->workQueue.size() >= 1) { - log("Asserting SMS Attention"); + log("Asserting SMS Attention"); std::string IPMI_PATH("/org/openbmc/HostIpmi/1"); std::string IPMI_INTERFACE("org.openbmc.HostIpmi"); @@ -124,14 +124,14 @@ void Manager::checkQueueAndAlertHost() log("Error in setting SMS attention"); elog(); } - log("SMS Attention asserted"); + log("SMS Attention asserted"); } } // Called by specific implementations that provide commands void Manager::execute(CommandHandler command) { - log("Pushing cmd on to queue", + log("Pushing cmd on to queue", entry("COMMAND=%d", std::get<0>(command).first)); this->workQueue.emplace(command); -- cgit v1.2.1