projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eefd56e
)
IB/mlx5: Improve debug prints in mlx5_ib_reg_user_mr
author
Eli Cohen
<eli@dev.mellanox.co.il>
Sun, 14 Sep 2014 13:47:51 +0000
(16:47 +0300)
committer
Roland Dreier
<roland@purestorage.com>
Thu, 9 Oct 2014 07:08:40 +0000
(
00:08
-0700)
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>
drivers/infiniband/hw/mlx5/mr.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx5/mr.c
b/drivers/infiniband/hw/mlx5/mr.c
index 80b3c63eab5d96b75a84180f56b9df9ec39a7b73..8ee7cb46e0590668bd79277bc672a9d41f90f02d 100644
(file)
--- a/
drivers/infiniband/hw/mlx5/mr.c
+++ b/
drivers/infiniband/hw/mlx5/mr.c
@@
-881,12
+881,12
@@
struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,
int order;
int err;
- mlx5_ib_dbg(dev, "start 0x%llx, virt_addr 0x%llx, length 0x%llx\n",
- start, virt_addr, length);
+ mlx5_ib_dbg(dev, "start 0x%llx, virt_addr 0x%llx, length 0x%llx
, access_flags 0x%x
\n",
+ start, virt_addr, length
, access_flags
);
umem = ib_umem_get(pd->uobject->context, start, length, access_flags,
0);
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;
}