summaryrefslogtreecommitdiffstats
path: root/ipmid.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2017-09-20 09:15:33 -0700
committerPatrick Venture <venture@google.com>2017-09-20 09:17:12 -0700
commit03f84ba1c62099d9669c108b0b90d505847db475 (patch)
treef1ce238b6c0f857a8288ca0bd74bbfe212cdafff /ipmid.cpp
parent580af36bd4668723dccedee792350edc5673f417 (diff)
downloadphosphor-host-ipmid-03f84ba1c62099d9669c108b0b90d505847db475.tar.gz
phosphor-host-ipmid-03f84ba1c62099d9669c108b0b90d505847db475.zip
Move error msg for trying wildcard into debug only
My logs are effectively full of this message, hiding out other useful messages because we run a lot of OEM traffic. Also, until the daemon fails to find the command via wildcard, it's not really an error worth reporting in most cases. Change-Id: Id6674f3e9a2f237de6bd37d6c9f89931a99d0951 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'ipmid.cpp')
-rw-r--r--ipmid.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipmid.cpp b/ipmid.cpp
index f6ab2fd..f06adc5 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -194,8 +194,11 @@ ipmi_ret_t ipmi_netfn_router(ipmi_netfn_t netfn, ipmi_cmd_t cmd, ipmi_request_t
auto iter = g_ipmid_router_map.find(std::make_pair(netfn, cmd));
if(iter == g_ipmid_router_map.end())
{
+ /* By default should only print on failure to find wildcard command. */
+#ifdef __IPMI_DEBUG__
fprintf(stderr, "No registered handlers for NetFn:[0x%X], Cmd:[0x%X]"
" trying Wilcard implementation \n",netfn, cmd);
+#endif
// Now that we did not find any specific [NetFn,Cmd], tuple, check for
// NetFn, WildCard command present.
OpenPOWER on IntegriCloud