diff options
author | Michael Heinz <mheinz@qlogic.com> | 2011-02-11 16:44:30 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-03-18 12:42:20 -0400 |
commit | 1eba843dd7678b9033a0d1ccff21c21b857de77b (patch) | |
tree | f4195735d983f368587d5b319279ed2f75a4d19f /drivers/infiniband/core | |
parent | 1bdd6384c2b43cac9be8d6f2c298bcf39f50cd07 (diff) |
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>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r-- | drivers/infiniband/core/agent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/agent.c b/drivers/infiniband/core/agent.c index 91916a8d5de4..2bc7f5af64f4 100644 --- a/drivers/infiniband/core/agent.c +++ b/drivers/infiniband/core/agent.c | |||
@@ -101,7 +101,8 @@ void agent_send_response(struct ib_mad *mad, struct ib_grh *grh, | |||
101 | agent = port_priv->agent[qpn]; | 101 | agent = port_priv->agent[qpn]; |
102 | ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); | 102 | ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); |
103 | if (IS_ERR(ah)) { | 103 | if (IS_ERR(ah)) { |
104 | printk(KERN_ERR SPFX "ib_create_ah_from_wc error\n"); | 104 | printk(KERN_ERR SPFX "ib_create_ah_from_wc error %ld\n", |
105 | PTR_ERR(ah)); | ||
105 | return; | 106 | return; |
106 | } | 107 | } |
107 | 108 | ||