Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01b3fc8b authored by Or Gerlitz's avatar Or Gerlitz Committed by Roland Dreier
Browse files

IPoIB: Include err code in trace message for ib_sa_path_rec_get() failures



Print the return code of ib_sa_path_rec_get() if it fails to help
debug errors.

Signed-off-by: default avatarOr Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 64b784b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -548,7 +548,7 @@ static int path_rec_start(struct net_device *dev,
				   path_rec_completion,
				   path_rec_completion,
				   path, &path->query);
				   path, &path->query);
	if (path->query_id < 0) {
	if (path->query_id < 0) {
		ipoib_warn(priv, "ib_sa_path_rec_get failed\n");
		ipoib_warn(priv, "ib_sa_path_rec_get failed: %d\n", path->query_id);
		path->query = NULL;
		path->query = NULL;
		return path->query_id;
		return path->query_id;
	}
	}