[ofa-general] [PATCH] ib/ipoib : print error code of ib_sa path lookup call

Or Gerlitz ogerlitz at voltaire.com
Sat Jul 19 23:35:38 PDT 2008


print the return code of ib_sa_path_rec_get to ease diagnosing errors

Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>

Index: infiniband/drivers/infiniband/ulp/ipoib/ipoib_main.c
===================================================================
--- infiniband.orig/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ infiniband/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -548,7 +548,7 @@ static int path_rec_start(struct net_dev
 				   path_rec_completion,
 				   path, &path->query);
 	if (path->query_id < 0) {
-		ipoib_warn(priv, "ib_sa_path_rec_get failed\n");
+		ipoib_warn(priv, "ib_sa_path_rec_get failed ret=%d\n",path->query_id);
 		path->query = NULL;
 		return path->query_id;
 	}



More information about the general mailing list