mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
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>
This commit is contained in:
parent
2f236735fd
commit
843613b047
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ static void path_rec_completion(int status,
|
|||
struct sk_buff *skb;
|
||||
unsigned long flags;
|
||||
|
||||
if (pathrec)
|
||||
if (!status)
|
||||
ipoib_dbg(priv, "PathRec LID 0x%04x for GID " IPOIB_GID_FMT "\n",
|
||||
be16_to_cpu(pathrec->dlid), IPOIB_GID_ARG(pathrec->dgid));
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue