From patchwork Mon Mar 7 09:57:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 615761 X-Patchwork-Delegate: alexne@voltaire.com 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 p27EwGa3004359 for ; Mon, 7 Mar 2011 14:59:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752411Ab1CGO7T (ORCPT ); Mon, 7 Mar 2011 09:59:19 -0500 Received: from mail.mellanox.co.il ([194.90.237.43]:39525 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751221Ab1CGO7T (ORCPT ); Mon, 7 Mar 2011 09:59:19 -0500 Received: from Internal Mail-Server by MTLPINE2 (envelope-from alexne@mellanox.com) with SMTP; 7 Mar 2011 11:57:44 +0200 Received: from MTRCASDAG01.mtl.com (172.25.0.174) by MTLCAS01.mtl.com (10.0.8.71) with Microsoft SMTP Server (TLS) id 14.1.270.1; Mon, 7 Mar 2011 11:57:44 +0200 Received: from localhost (172.25.6.157) by MTRCASDAG01.mtl.com (172.25.0.174) with Microsoft SMTP Server (TLS) id 14.1.270.1; Mon, 7 Mar 2011 11:57:44 +0200 Date: Mon, 7 Mar 2011 11:57:39 +0200 From: Alex Netes To: Subject: [PATCH] opensm: Fixed debug message in osm_vendor_send() Message-ID: <20110307095739.GG5577@calypso.voltaire.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [172.25.6.157] 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]); Mon, 07 Mar 2011 14:59:20 +0000 (UTC) diff --git a/libvendor/osm_vendor_ibumad.c b/libvendor/osm_vendor_ibumad.c index 2373803..be2dda2 100644 --- a/libvendor/osm_vendor_ibumad.c +++ b/libvendor/osm_vendor_ibumad.c @@ -1004,6 +1004,7 @@ osm_vendor_send(IN osm_bind_handle_t h_bind, int ret = -1; int is_rmpp = 0; uint32_t sent_mad_size; + uint64_t tid; #ifndef VENDOR_RMPP_SUPPORT uint32_t paylen = 0; #endif @@ -1068,13 +1069,14 @@ Resp: sent_mad_size = is_rmpp ? p_madw->mad_size - IB_SA_MAD_HDR_SIZE : p_madw->mad_size; #endif + tid = cl_ntoh64(p_mad->trans_id); if ((ret = umad_send(p_bind->port_id, p_bind->agent_id, p_vw->umad, sent_mad_size, resp_expected ? p_bind->timeout : 0, p_bind->max_retries)) < 0) { OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5430: " "Send p_madw = %p of size %d TID 0x%" PRIx64 " failed %d (%m)\n", - p_madw, sent_mad_size, cl_ntoh64(p_mad->trans_id), ret); + p_madw, sent_mad_size, tid, ret); if (resp_expected) { get_madw(p_vend, &p_mad->trans_id); /* remove from aging table */ p_madw->status = IB_ERROR; @@ -1089,8 +1091,8 @@ Resp: if (!resp_expected) osm_mad_pool_put(p_bind->p_mad_pool, p_madw); - OSM_LOG(p_vend->p_log, OSM_LOG_DEBUG, "Completed sending %s p_madw = %p\n", - resp_expected ? "request" : "response or unsolicited", p_madw); + OSM_LOG(p_vend->p_log, OSM_LOG_DEBUG, "Completed sending %s TID 0x%" PRIx64 "\n", + resp_expected ? "request" : "response or unsolicited", tid); Exit: OSM_LOG_EXIT(p_vend->p_log); return (ret);