Skip to content

Commit b2c6941

Browse files
committed
ipmi: Convert pr_debug() to dev_dbg()
A device is available at all debug points, use the right interface. Signed-off-by: Corey Minyard <cminyard@mvista.com>
1 parent 2ebaf18 commit b2c6941

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

drivers/char/ipmi/ipmi_msghandler.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,7 +2384,8 @@ static int i_ipmi_request(struct ipmi_user *user,
23842384
ipmi_free_smi_msg(smi_msg);
23852385
ipmi_free_recv_msg(recv_msg);
23862386
} else {
2387-
pr_debug("Send: %*ph\n", smi_msg->data_size, smi_msg->data);
2387+
dev_dbg(intf->si_dev, "Send: %*ph\n",
2388+
smi_msg->data_size, smi_msg->data);
23882389

23892390
smi_send(intf, intf->handlers, smi_msg, priority);
23902391
}
@@ -3925,7 +3926,8 @@ static int handle_ipmb_get_msg_cmd(struct ipmi_smi *intf,
39253926
msg->data[10] = ipmb_checksum(&msg->data[6], 4);
39263927
msg->data_size = 11;
39273928

3928-
pr_debug("Invalid command: %*ph\n", msg->data_size, msg->data);
3929+
dev_dbg(intf->si_dev, "Invalid command: %*ph\n",
3930+
msg->data_size, msg->data);
39293931

39303932
rcu_read_lock();
39313933
if (!intf->in_shutdown) {
@@ -4533,7 +4535,7 @@ static int handle_one_recv_msg(struct ipmi_smi *intf,
45334535
unsigned char cc;
45344536
bool is_cmd = !((msg->rsp[0] >> 2) & 1);
45354537

4536-
pr_debug("Recv: %*ph\n", msg->rsp_size, msg->rsp);
4538+
dev_dbg(intf->si_dev, "Recv: %*ph\n", msg->rsp_size, msg->rsp);
45374539

45384540
if (msg->rsp_size < 2) {
45394541
/* Message is too small to be correct. */
@@ -4917,7 +4919,8 @@ smi_from_recv_msg(struct ipmi_smi *intf, struct ipmi_recv_msg *recv_msg,
49174919
smi_msg->data_size = recv_msg->msg.data_len;
49184920
smi_msg->msgid = STORE_SEQ_IN_MSGID(seq, seqid);
49194921

4920-
pr_debug("Resend: %*ph\n", smi_msg->data_size, smi_msg->data);
4922+
dev_dbg(intf->si_dev, "Resend: %*ph\n",
4923+
smi_msg->data_size, smi_msg->data);
49214924

49224925
return smi_msg;
49234926
}

0 commit comments

Comments
 (0)