IPoIB: Correct debugging output when path record lookup fails
authorRoland Dreier <rolandd@cisco.com>
Mon, 26 Feb 2007 20:57:08 +0000 (12:57 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 26 Feb 2007 20:57:08 +0000 (12:57 -0800)
commit843613b04744d5b65c2f37975c5310f366a0d070
tree08b188743c4304cc34964a99fac1595267eb3ab9
parent2f236735fd05259a07a28233dcd07a8a6dddee9b
IPoIB: Correct debugging output when path record lookup fails

If path_rec_completion() is passed a non-NULL path record pointer
along with an unsuccessful status value, the tracing code incorrectly
prints the (invalid) DLID from the path record rather than the more
interesting status code.  The actual logic of the function correctly
uses the path record only if the status indicates a successful lookup.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c