mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
#ifdef the error printk
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1625 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
264b968cbe
commit
e1d2d03e8e
1 file changed
+4
-3
@@ -139,10 +139,11 @@ static void ipmi_i2c_msg_handler(struct ipmi_recv_msg *msg,
|
||||
int rcvid = msg->msgid & 0xffffff;
|
||||
int client = (msg->msgid >> 24) & 0xf;
|
||||
|
||||
#ifdef DEBUG
|
||||
if (msg->msg.data[0] != 0)
|
||||
printk(KERN_WARNING "IPMI BMC response: Error 0x%x on cmd 0x%x\n",
|
||||
msg->msg.data[0], msg->msg.cmd);
|
||||
|
||||
printk(KERN_WARNING "IPMI BMC response: Error 0x%x on cmd 0x%x/0x%x\n",
|
||||
msg->msg.data[0], msg->msg.netfn, msg->msg.cmd);
|
||||
#endif
|
||||
/* todo: keep track of multiple clients */
|
||||
if(client == 1 && rcv_callback != NULL)
|
||||
(*rcv_callback)(NULL, client, msg);
|
||||
|
||||
Reference in new issue
Block a user