aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorEli Cohen <eli@dev.mellanox.co.il>2014-09-14 09:47:51 -0400
committerRoland Dreier <roland@purestorage.com>2014-10-09 03:08:40 -0400
commit900a6d79176ea9172e19f86aa324e9198b40339c (patch)
tree52c24aed20fecd42569bbd6a1574b67d34a820ae /drivers/infiniband
parenteefd56e5895540ea78979b7845f76c9bb94c8fed (diff)
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/mlx5/mr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c
index 80b3c63eab5d..8ee7cb46e059 100644
--- 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,
881 int order; 881 int order;
882 int err; 882 int err;
883 883
884 mlx5_ib_dbg(dev, "start 0x%llx, virt_addr 0x%llx, length 0x%llx\n", 884 mlx5_ib_dbg(dev, "start 0x%llx, virt_addr 0x%llx, length 0x%llx, access_flags 0x%x\n",
885 start, virt_addr, length); 885 start, virt_addr, length, access_flags);
886 umem = ib_umem_get(pd->uobject->context, start, length, access_flags, 886 umem = ib_umem_get(pd->uobject->context, start, length, access_flags,
887 0); 887 0);
888 if (IS_ERR(umem)) { 888 if (IS_ERR(umem)) {
889 mlx5_ib_dbg(dev, "umem get failed\n"); 889 mlx5_ib_dbg(dev, "umem get failed (%ld)\n", PTR_ERR(umem));
890 return (void *)umem; 890 return (void *)umem;
891 } 891 }
892 892