mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 23:28:55 +00:00
IB/mlx5: Improve debug prints in mlx5_ib_reg_user_mr
Print access flags and error code from ib_umem_get. Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
parent
eefd56e589
commit
900a6d7917
1 changed files with 3 additions and 3 deletions
|
@ -881,12 +881,12 @@ struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
|
||||||
int order;
|
int order;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
mlx5_ib_dbg(dev, "start 0x%llx, virt_addr 0x%llx, length 0x%llx\n",
|
mlx5_ib_dbg(dev, "start 0x%llx, virt_addr 0x%llx, length 0x%llx, access_flags 0x%x\n",
|
||||||
start, virt_addr, length);
|
start, virt_addr, length, access_flags);
|
||||||
umem = ib_umem_get(pd->uobject->context, start, length, access_flags,
|
umem = ib_umem_get(pd->uobject->context, start, length, access_flags,
|
||||||
0);
|
0);
|
||||||
if (IS_ERR(umem)) {
|
if (IS_ERR(umem)) {
|
||||||
mlx5_ib_dbg(dev, "umem get failed\n");
|
mlx5_ib_dbg(dev, "umem get failed (%ld)\n", PTR_ERR(umem));
|
||||||
return (void *)umem;
|
return (void *)umem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue