diff mbox series

net/rds: Fix a debug message

Message ID 20200224103215.utw3zaa6nmcb5vrz@kili.mountain (mailing list archive)
State Not Applicable
Headers show
Series net/rds: Fix a debug message | expand

Commit Message

Dan Carpenter Feb. 24, 2020, 10:32 a.m. UTC
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@oracle.com>
---
 net/rds/ib_rdma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Santosh Shilimkar Feb. 24, 2020, 5:52 p.m. UTC | #1
On 2/24/20 2:32 AM, Dan Carpenter wrote:
> 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@oracle.com>
> ---
Right.

Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
diff mbox series

Patch

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;
 		}