Skip to content

Commit

Permalink
IB/mad: Improve an error message so error code is included
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Heinz <michael.heinz@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Michael Heinz authored and Roland Dreier committed Mar 18, 2011
1 parent 1bdd638 commit 1eba843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/infiniband/core/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ void agent_send_response(struct ib_mad *mad, struct ib_grh *grh,
agent = port_priv->agent[qpn];
ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num);
if (IS_ERR(ah)) {
printk(KERN_ERR SPFX "ib_create_ah_from_wc error\n");
printk(KERN_ERR SPFX "ib_create_ah_from_wc error %ld\n",
PTR_ERR(ah));
return;
}

Expand Down

0 comments on commit 1eba843

Please sign in to comment.