Commit 994baacc authored by Xinhao Liu's avatar Xinhao Liu Committed by Jason Gunthorpe

RDMA/hns: Correct the hex print format

The hex printf format should be "0xff" instead of "ff".

Link: https://lore.kernel.org/r/20211119140208.40416-2-liangwenpeng@huawei.comSigned-off-by: default avatarXinhao Liu <liuxinhao5@hisilicon.com>
Signed-off-by: default avatarWenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 88f9335f
...@@ -61,7 +61,7 @@ static int __hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, u64 in_param, ...@@ -61,7 +61,7 @@ static int __hns_roce_cmd_mbox_poll(struct hns_roce_dev *hr_dev, u64 in_param,
CMD_POLL_TOKEN, 0); CMD_POLL_TOKEN, 0);
if (ret) { if (ret) {
dev_err_ratelimited(hr_dev->dev, dev_err_ratelimited(hr_dev->dev,
"failed to post mailbox %x in poll mode, ret = %d.\n", "failed to post mailbox 0x%x in poll mode, ret = %d.\n",
op, ret); op, ret);
return ret; return ret;
} }
...@@ -91,7 +91,7 @@ void hns_roce_cmd_event(struct hns_roce_dev *hr_dev, u16 token, u8 status, ...@@ -91,7 +91,7 @@ void hns_roce_cmd_event(struct hns_roce_dev *hr_dev, u16 token, u8 status,
if (unlikely(token != context->token)) { if (unlikely(token != context->token)) {
dev_err_ratelimited(hr_dev->dev, dev_err_ratelimited(hr_dev->dev,
"[cmd] invalid ae token %x,context token is %x!\n", "[cmd] invalid ae token 0x%x, context token is 0x%x.\n",
token, context->token); token, context->token);
return; return;
} }
...@@ -130,14 +130,14 @@ static int __hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, ...@@ -130,14 +130,14 @@ static int __hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param,
context->token, 1); context->token, 1);
if (ret) { if (ret) {
dev_err_ratelimited(dev, dev_err_ratelimited(dev,
"failed to post mailbox %x in event mode, ret = %d.\n", "failed to post mailbox 0x%x in event mode, ret = %d.\n",
op, ret); op, ret);
goto out; goto out;
} }
if (!wait_for_completion_timeout(&context->done, if (!wait_for_completion_timeout(&context->done,
msecs_to_jiffies(timeout))) { msecs_to_jiffies(timeout))) {
dev_err_ratelimited(dev, "[cmd] token %x mailbox %x timeout.\n", dev_err_ratelimited(dev, "[cmd] token 0x%x mailbox 0x%x timeout.\n",
context->token, op); context->token, op);
ret = -EBUSY; ret = -EBUSY;
goto out; goto out;
...@@ -145,7 +145,7 @@ static int __hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param, ...@@ -145,7 +145,7 @@ static int __hns_roce_cmd_mbox_wait(struct hns_roce_dev *hr_dev, u64 in_param,
ret = context->result; ret = context->result;
if (ret) if (ret)
dev_err_ratelimited(dev, "[cmd] token %x mailbox %x error %d\n", dev_err_ratelimited(dev, "[cmd] token 0x%x mailbox 0x%x error %d.\n",
context->token, op, ret); context->token, op, ret);
out: out:
......
...@@ -1295,7 +1295,7 @@ static int __hns_roce_cmq_send(struct hns_roce_dev *hr_dev, ...@@ -1295,7 +1295,7 @@ static int __hns_roce_cmq_send(struct hns_roce_dev *hr_dev,
continue; continue;
dev_err_ratelimited(hr_dev->dev, dev_err_ratelimited(hr_dev->dev,
"Cmdq IO error, opcode = %x, return = %x\n", "Cmdq IO error, opcode = 0x%x, return = 0x%x.\n",
desc->opcode, desc_ret); desc->opcode, desc_ret);
ret = -EIO; ret = -EIO;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment