driver inclusion category: cleanup bugzilla: https://gitee.com/openeuler/kernel/issues/I6GT7F
--------------------------------------------------------------------------
Unsigned variable, print type should be "%u". This patch fixes it.
Fixes: 79c470b1c348 ("RDMA/hns: Fix wild pointer error of RoCE bonding when rmmod hns3") Signed-off-by: Chengchang Tang tangchengchang@huawei.com --- drivers/infiniband/hw/hns/hns_roce_bond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/hns/hns_roce_bond.c b/drivers/infiniband/hw/hns/hns_roce_bond.c index f9f57f10135f..f97166031a30 100644 --- a/drivers/infiniband/hw/hns/hns_roce_bond.c +++ b/drivers/infiniband/hw/hns/hns_roce_bond.c @@ -620,7 +620,7 @@ int hns_roce_cleanup_bond(struct hns_roce_bond_group *bond_grp) cancel_delayed_work(&bond_grp->bond_work); ret = remove_bond_id(bond_grp->bus_num, bond_grp->bond_id); if (ret) - BOND_ERR_LOG("failed to remove bond id %d, ret = %d.\n", + BOND_ERR_LOG("failed to remove bond id %u, ret = %d.\n", bond_grp->bond_id, ret);
completion_no_waiter = completion_done(&bond_grp->bond_work_done);