提交 0a1a36fd 编写于 作者: X Xinhao Liu 提交者: Zheng Zengkai

RDMA/hns: Correct the print format to be consistent with the variable type

mainline inclusion
from mainline-v5.16-rc2
commit ea393549
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4QOTS
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=ea393549a3e10dd1ab84a8ad948772d12e667eca

---------------------------------------------------------------------

The print format should be consistent with the variable type.

Link: https://lore.kernel.org/r/20211119140208.40416-3-liangwenpeng@huawei.comSigned-off-by: NXinhao Liu <liuxinhao5@hisilicon.com>
Signed-off-by: NWenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: NJason Gunthorpe <jgg@nvidia.com>
sigend-off-by: NGuofeng Yue <yueguofeng@hisilicon.com>
Reviewed-by: NYangyang Li <liyangyang20@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 541bfd33
...@@ -1312,7 +1312,7 @@ static int __hns_roce_cmq_send(struct hns_roce_dev *hr_dev, ...@@ -1312,7 +1312,7 @@ static int __hns_roce_cmq_send(struct hns_roce_dev *hr_dev,
} else { } else {
/* FW/HW reset or incorrect number of desc */ /* FW/HW reset or incorrect number of desc */
tail = roce_read(hr_dev, ROCEE_TX_CMQ_CI_REG); tail = roce_read(hr_dev, ROCEE_TX_CMQ_CI_REG);
dev_warn(hr_dev->dev, "CMDQ move tail from %d to %d\n", dev_warn(hr_dev->dev, "CMDQ move tail from %u to %u.\n",
csq->head, tail); csq->head, tail);
csq->head = tail; csq->head = tail;
...@@ -4715,7 +4715,7 @@ static int hns_roce_v2_set_path(struct ib_qp *ibqp, ...@@ -4715,7 +4715,7 @@ static int hns_roce_v2_set_path(struct ib_qp *ibqp,
hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr);
if (unlikely(hr_qp->sl > MAX_SERVICE_LEVEL)) { if (unlikely(hr_qp->sl > MAX_SERVICE_LEVEL)) {
ibdev_err(ibdev, ibdev_err(ibdev,
"failed to fill QPC, sl (%d) shouldn't be larger than %d.\n", "failed to fill QPC, sl (%u) shouldn't be larger than %d.\n",
hr_qp->sl, MAX_SERVICE_LEVEL); hr_qp->sl, MAX_SERVICE_LEVEL);
return -EINVAL; return -EINVAL;
} }
...@@ -5820,7 +5820,7 @@ static void hns_roce_v2_destroy_eqc(struct hns_roce_dev *hr_dev, int eqn) ...@@ -5820,7 +5820,7 @@ static void hns_roce_v2_destroy_eqc(struct hns_roce_dev *hr_dev, int eqn)
0, HNS_ROCE_CMD_DESTROY_AEQC, 0, HNS_ROCE_CMD_DESTROY_AEQC,
HNS_ROCE_CMD_TIMEOUT_MSECS); HNS_ROCE_CMD_TIMEOUT_MSECS);
if (ret) if (ret)
dev_err(dev, "[mailbox cmd] destroy eqc(%d) failed.\n", eqn); dev_err(dev, "[mailbox cmd] destroy eqc(%u) failed.\n", eqn);
} }
static void free_eq_buf(struct hns_roce_dev *hr_dev, struct hns_roce_eq *eq) static void free_eq_buf(struct hns_roce_dev *hr_dev, struct hns_roce_eq *eq)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册