]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30d3777d2a46334a2e97aaa840fa7f3b95bd730c
tree08b188743c4304cc34964a99fac1595267eb3ab9
parentaec5df792fb669f2fbc112fac4557ec215f60d78
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