summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@voltaire.com>2008-07-22 14:18:34 -0700
committerRoland Dreier <rolandd@cisco.com>2008-07-22 14:18:34 -0700
commit01b3fc8b15432f7931e40fe099839e1559fb0e09 (patch)
treeeaa7a17870cd3a069d4b87326f34930d28dd83f2 /drivers/infiniband/ulp/ipoib
parent64b784b583061ebfe1d484dd1fdc5a26c6d4293f (diff)
downloadblackbird-obmc-linux-01b3fc8b15432f7931e40fe099839e1559fb0e09.tar.gz
blackbird-obmc-linux-01b3fc8b15432f7931e40fe099839e1559fb0e09.zip
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: Or Gerlitz <ogerlitz@voltaire.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index 8be9ea0436e6..f51201b17bfd 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -548,7 +548,7 @@ static int path_rec_start(struct net_device *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: %d\n", path->query_id);
path->query = NULL;
return path->query_id;
}
OpenPOWER on IntegriCloud