[PATCH] net/rds: Fix a debug message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This should display the error code but instead it just prints "1".

Fixes: 2eafa1746f17 ("net/rds: Handle ODP mr registration/unregistration")
Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
---
 net/rds/ib_rdma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
index b34b24e237f8..82a25bf280e3 100644
--- a/net/rds/ib_rdma.c
+++ b/net/rds/ib_rdma.c
@@ -587,8 +587,8 @@ void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents,
 				       access_flags);
 
 		if (IS_ERR(ib_mr)) {
-			rdsdebug("rds_ib_get_user_mr returned %d\n",
-				 IS_ERR(ib_mr));
+			rdsdebug("rds_ib_get_user_mr returned %ld\n",
+				 PTR_ERR(ib_mr));
 			ret = PTR_ERR(ib_mr);
 			goto out;
 		}
-- 
2.11.0




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux