[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]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux