summaryrefslogtreecommitdiffstats
path: root/dcmihandler.cpp
diff options
context:
space:
mode:
authorAditya Saripalli <adisarip@in.ibm.com>2017-11-09 14:46:27 +0530
committerVernon Mauery <vernon.mauery@linux.intel.com>2018-04-18 21:02:48 +0000
commit5fb14603817baad7418b627ca41927d9ec7c4fc9 (patch)
tree91607e546db5d8bbee17e40c0c8b28c2aaa082c6 /dcmihandler.cpp
parent7ebd246403417294fc6fa1914967b6e60a92f062 (diff)
downloadphosphor-host-ipmid-5fb14603817baad7418b627ca41927d9ec7c4fc9.tar.gz
phosphor-host-ipmid-5fb14603817baad7418b627ca41927d9ec7c4fc9.zip
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 <aditya0124@gmail.com> Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
Diffstat (limited to 'dcmihandler.cpp')
-rw-r--r--dcmihandler.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/dcmihandler.cpp b/dcmihandler.cpp
index 2f3eded..be3e27e 100644
--- a/dcmihandler.cpp
+++ b/dcmihandler.cpp
@@ -1506,50 +1506,36 @@ ipmi_ret_t getSensorInfo(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
void register_netfn_dcmi_functions()
{
// <Get Power Limit>
- printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",
- NETFUN_GRPEXT, dcmi::Commands::GET_POWER_LIMIT);
ipmi_register_callback(NETFUN_GRPEXT, dcmi::Commands::GET_POWER_LIMIT,
NULL, getPowerLimit, PRIVILEGE_USER);
// <Set Power Limit>
- printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",
- NETFUN_GRPEXT, dcmi::Commands::SET_POWER_LIMIT);
ipmi_register_callback(NETFUN_GRPEXT, dcmi::Commands::SET_POWER_LIMIT,
NULL, setPowerLimit, PRIVILEGE_OPERATOR);
// <Activate/Deactivate Power Limit>
- printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",
- NETFUN_GRPEXT, dcmi::Commands::APPLY_POWER_LIMIT);
ipmi_register_callback(NETFUN_GRPEXT, dcmi::Commands::APPLY_POWER_LIMIT,
NULL, applyPowerLimit, PRIVILEGE_OPERATOR);
// <Get Asset Tag>
- printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",
- NETFUN_GRPEXT, dcmi::Commands::GET_ASSET_TAG);
ipmi_register_callback(NETFUN_GRPEXT, dcmi::Commands::GET_ASSET_TAG,
NULL, getAssetTag, PRIVILEGE_USER);
// <Set Asset Tag>
- printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",
- NETFUN_GRPEXT, dcmi::Commands::SET_ASSET_TAG);
ipmi_register_callback(NETFUN_GRPEXT, dcmi::Commands::SET_ASSET_TAG,
NULL, setAssetTag, PRIVILEGE_OPERATOR);
// <Get Management Controller Identifier String>
- printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",
- NETFUN_GRPEXT, dcmi::Commands::GET_MGMNT_CTRL_ID_STR);
ipmi_register_callback(NETFUN_GRPEXT, dcmi::Commands::GET_MGMNT_CTRL_ID_STR,
NULL, getMgmntCtrlIdStr, PRIVILEGE_USER);
// <Set Management Controller Identifier String>
- printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",
- NETFUN_GRPEXT, dcmi::Commands::SET_MGMNT_CTRL_ID_STR);
ipmi_register_callback(NETFUN_GRPEXT, dcmi::Commands::SET_MGMNT_CTRL_ID_STR,
NULL, setMgmntCtrlIdStr, PRIVILEGE_ADMIN);
OpenPOWER on IntegriCloud