IPoIB: Include err code in trace message for ib_sa_path_rec_get() failures
authorOr Gerlitz <ogerlitz@voltaire.com>
Tue, 22 Jul 2008 21:18:34 +0000 (14:18 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 22 Jul 2008 21:18:34 +0000 (14:18 -0700)
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>
drivers/infiniband/ulp/ipoib/ipoib_main.c

index 8be9ea0436e6bf4751042a644bb78912a319627b..f51201b17bfd3048ddbd66fd4edadb41b310cdb0 100644 (file)
@@ -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;
        }
This page took 0.026488 seconds and 5 git commands to generate.