From patchwork Fri Feb 11 21:13:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heinz X-Patchwork-Id: 550891 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1BLjjts028650 for ; Fri, 11 Feb 2011 21:45:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758212Ab1BKVp3 (ORCPT ); Fri, 11 Feb 2011 16:45:29 -0500 Received: from cain.qlogic.com ([198.70.193.223]:38522 "EHLO cain.qlc.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758211Ab1BKVp2 (ORCPT ); Fri, 11 Feb 2011 16:45:28 -0500 Received: from kop-sds-dev-02.qlogic.org (IDENT:U2FsdGVkX1/FEloUL6xOzS2/9NdxR/DaOCyrhQE/fLM@kop-sds-dev-02.qlogic.org [10.32.4.222]) by cain.qlc.com (8.13.7+Sun/8.12.10) with ESMTP id p1BLDY2Q011962; Fri, 11 Feb 2011 13:13:35 -0800 (PST) Received: from kop-sds-dev-02.qlogic.org (localhost.localdomain [127.0.0.1]) by kop-sds-dev-02.qlogic.org (8.13.1/8.13.1) with ESMTP id p1BLDYt0025868; Fri, 11 Feb 2011 16:13:34 -0500 Subject: [PATCH] Minor improvement to an error message so error code is included To: Roland Dreier From: Michael Heinz Cc: linux-rdma@vger.kernel.org Date: Fri, 11 Feb 2011 16:13:34 -0500 Message-ID: <20110211211334.25845.83992.stgit@kop-sds-dev-02.qlogic.org> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 11 Feb 2011 21:45:45 +0000 (UTC) diff --git a/drivers/infiniband/core/agent.c b/drivers/infiniband/core/agent.c index 91916a8..2bc7f5a 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; }