From: Michael Heinz Date: Fri, 11 Feb 2011 21:44:30 +0000 (+0000) Subject: IB/mad: Improve an error message so error code is included X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1eba843dd7678b9033a0d1ccff21c21b857de77b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git IB/mad: Improve an error message so error code is included Signed-off-by: Michael Heinz Signed-off-by: Roland Dreier --- 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, 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; }