From patchwork Thu Aug 9 06:27:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1298811 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 03DCBDFF7B for ; Thu, 9 Aug 2012 06:28:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754712Ab2HIG2A (ORCPT ); Thu, 9 Aug 2012 02:28:00 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:41648 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754027Ab2HIG2A (ORCPT ); Thu, 9 Aug 2012 02:28:00 -0400 Received: by weyx8 with SMTP id x8so59687wey.19 for ; Wed, 08 Aug 2012 23:27:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=4NL8JNKVYGG+RRRqqlP3HV8sFRG8Wo73MP3Hkfwuv3Q=; b=BzYKM7s7zlV1pFxupxh61oeUTc5mMVQfJvdwDEiJdWTTr6Yb8clYfx/HErYGdpWNWV pDK1xTYtsbUnHBbfATw5HLc1atlL+lMf4ORbFdk7kdxYH5RE7IdvhgabgicPYdtotFL4 VoqMBHIVl6P/ty3ohw6Bkyl9uD7oz2ECIxjGzYWQdZO4nEIseftg47ouMRMSxGuFr4Jn 3CbVGdY6KYAT5p0nka4/30sboBp4pJNNspl1MabRya3PqFWbIvWMlEQdcIXQ1WsETpvv zP2gwAqDTGl415DV281qQchvrMQA7GqYcgA+i2wF2GqxDbSZSXOSZFsaqugGTztv3cJs K0xg== Received: by 10.217.1.201 with SMTP id n51mr10271815wes.124.1344493678224; Wed, 08 Aug 2012 23:27:58 -0700 (PDT) Received: from [172.25.5.46] ([193.47.165.251]) by mx.google.com with ESMTPS id ef5sm126330wib.3.2012.08.08.23.27.55 (version=SSLv3 cipher=OTHER); Wed, 08 Aug 2012 23:27:57 -0700 (PDT) Message-ID: <50235867.1080308@dev.mellanox.co.il> Date: Thu, 09 Aug 2012 02:27:51 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH][MINOR] opensm/osm_vendor_ibumad.c: Add management class to error log message X-Gm-Message-State: ALoCoQm9qoVn0mOIg9NvzgLaMrOEKF0lsLAhqYDZ32d8XZp1P1jsk3uVGFjY9LN56SmxEZ1Po27b Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/libvendor/osm_vendor_ibumad.c b/libvendor/osm_vendor_ibumad.c index d9ed13a..b068443 100644 --- a/libvendor/osm_vendor_ibumad.c +++ b/libvendor/osm_vendor_ibumad.c @@ -133,6 +133,7 @@ static void clear_madw(osm_vendor_t * p_vend) { umad_match_t *m, *e, *old_m; ib_net64_t old_tid; + uint8_t old_mgmt_class; OSM_LOG_ENTER(p_vend->p_log); pthread_mutex_lock(&p_vend->match_tbl_mutex); @@ -140,14 +141,16 @@ static void clear_madw(osm_vendor_t * p_vend) if (m->tid) { old_m = m; old_tid = m->tid; + old_mgmt_class = m->mgmt_class; m->tid = 0; osm_mad_pool_put(((osm_umad_bind_info_t *) ((osm_madw_t *) m->v)->h_bind)-> p_mad_pool, m->v); pthread_mutex_unlock(&p_vend->match_tbl_mutex); OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5401: " - "evicting entry %p (tid was 0x%" PRIx64 ")\n", - old_m, cl_ntoh64(old_tid)); + "evicting entry %p (tid was 0x%" PRIx64 + " mgmt class 0x%x)\n", + old_m, cl_ntoh64(old_tid), old_mgmt_class); goto Exit; } }