From patchwork Fri Feb 11 21:44:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heinz X-Patchwork-Id: 550861 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 p1BLh6cf027247 for ; Fri, 11 Feb 2011 21:44:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757159Ab1BKVok (ORCPT ); Fri, 11 Feb 2011 16:44:40 -0500 Received: from cain.qlogic.com ([198.70.193.223]:38510 "EHLO cain.qlc.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757072Ab1BKVoj (ORCPT ); Fri, 11 Feb 2011 16:44:39 -0500 Received: from kop-sds-dev-02.qlogic.org (IDENT:U2FsdGVkX19Bl5Munaxwhi5PGtuSixi554aWG+DrFwU@kop-sds-dev-02.qlogic.org [10.32.4.222]) by cain.qlc.com (8.13.7+Sun/8.12.10) with ESMTP id p1BLiUoV012622; Fri, 11 Feb 2011 13:44:30 -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 p1BLiUHp027649; Fri, 11 Feb 2011 16:44:30 -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:44:30 -0500 Message-ID: <20110211214430.27626.65574.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:44:40 +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; }