From patchwork Wed Nov 20 23:26:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3215961 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 70FD29F26C for ; Wed, 20 Nov 2013 23:26:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE3D7206D4 for ; Wed, 20 Nov 2013 23:26:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD2D520635 for ; Wed, 20 Nov 2013 23:26:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754975Ab3KTX0l (ORCPT ); Wed, 20 Nov 2013 18:26:41 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:59242 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754956Ab3KTX0k (ORCPT ); Wed, 20 Nov 2013 18:26:40 -0500 Received: by mail-wi0-f172.google.com with SMTP id en1so5996867wid.17 for ; Wed, 20 Nov 2013 15:26:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=QKSFIFV9rk2dhxLJxIHkKON3AM3tD7FdSdM0aCy4BU8=; b=nKb8ZfDbHOpkVcCErb95e+Zt0cHZ93XKnseuGIMPv011qGO52SjyxHv13+KjmySzEG hI9EhA5JQ0fNpGSQSxis3H/vSiHrk+8ROhDECDuQe8VfLWsYrPRRa7GjmezcujiwcMKY XMwuf3vzdS+F4s5iT4t/bvcYFTQzf+RpphMfYSsVSxca1EWv5CYH2Z3UzAwF48E5pVl1 2vkk8r7UoYqJXYYS3EDTLoY/glbHTQBRn2zonXfkbUCyoQlwDL5Skxj/w95CyoFK063y bYZ7Vxs61knE6hCs1QJINfENudVy33B0J5YYOkVbHKzMwRKm2Njo1wbBhFPGAixFO7Zt 72wQ== X-Gm-Message-State: ALoCoQl3iFSdW46a69DjYR8suPUaIO9BXIHVMLD1QMsYIkqlxYOIGPHgDwmSEGvtGLQ5DCRWDOoi X-Received: by 10.194.123.8 with SMTP id lw8mr2900357wjb.40.1384989999734; Wed, 20 Nov 2013 15:26:39 -0800 (PST) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id dj8sm263201wid.2.2013.11.20.15.26.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Nov 2013 15:26:38 -0800 (PST) Message-ID: <528D452C.1030405@dev.mellanox.co.il> Date: Wed, 20 Nov 2013 18:26:36 -0500 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: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Alex Netes Subject: [PATCH opensm] osm_state_mgr.c: Fix error print in state_mgr_check_tbl_consistency() Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Alex Netes Need to print NodeDesc and PortNum for both p_port_ref and p_port_stored. Signed-off-by: Alex Netes --- opensm/osm_state_mgr.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opensm/osm_state_mgr.c b/opensm/osm_state_mgr.c index bf6181a..36e9f6c 100644 --- a/opensm/osm_state_mgr.c +++ b/opensm/osm_state_mgr.c @@ -1312,8 +1312,8 @@ static void state_mgr_check_tbl_consistency(IN osm_sm_t * sm) p_port_ref->p_node->print_desc, p_port_ref->p_physp->port_num, cl_ntoh64(osm_port_get_guid(p_port_stored)), - p_port_ref->p_node->print_desc, - p_port_ref->p_physp->port_num); + p_port_stored->p_node->print_desc, + p_port_stored->p_physp->port_num); /* In any of these cases we want to set NULL in the * port_lid_tbl, since this entry is invalid. Also, make sure