dect
/
linux-2.6
Archived
13
0
Fork 0

IB/mad: Improve an error message so error code is included

Signed-off-by: Michael Heinz <michael.heinz@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
Michael Heinz 2011-02-11 21:44:30 +00:00 committed by Roland Dreier
parent 1bdd6384c2
commit 1eba843dd7
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}