diff options
author | Yixing Liu <liuyixing1@huawei.com> | 2021-06-18 18:10:13 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-06-22 15:17:06 -0300 |
commit | 125073e76ba3c7cdedef0fb538d2f22be1f33f92 (patch) | |
tree | 6506ee99b5fd14f3142fe15d83a98aa3b7de965d /drivers/infiniband/hw/hns/hns_roce_mr.c | |
parent | 2a38c0f10e6d7d28e06ff1eb1f350804c4850275 (diff) | |
download | linux-stable-125073e76ba3c7cdedef0fb538d2f22be1f33f92.tar.gz linux-stable-125073e76ba3c7cdedef0fb538d2f22be1f33f92.tar.bz2 linux-stable-125073e76ba3c7cdedef0fb538d2f22be1f33f92.zip |
RDMA/hns: Fix some print issues
Remove redundant print and fix a character type mismatch.
Fixes: 0e0ab04b5bbe ("RDMA/hns: Refactor the MTR creation flow")
Link: https://lore.kernel.org/r/1624011020-16992-4-git-send-email-liweihang@huawei.com
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_mr.c')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_mr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c index 7733e4de8832..006c84bb3f9f 100644 --- a/drivers/infiniband/hw/hns/hns_roce_mr.c +++ b/drivers/infiniband/hw/hns/hns_roce_mr.c @@ -988,7 +988,7 @@ int hns_roce_mtr_create(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr, &buf_page_shift, udata ? user_addr & ~PAGE_MASK : 0); if (buf_page_cnt < 1 || buf_page_shift < HNS_HW_PAGE_SHIFT) { - ibdev_err(ibdev, "failed to init mtr cfg, count %d shift %d.\n", + ibdev_err(ibdev, "failed to init mtr cfg, count %d shift %u.\n", buf_page_cnt, buf_page_shift); return -EINVAL; } |