From patchwork Thu Mar 7 12:48:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2231471 X-Patchwork-Delegate: hal@mellanox.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 92383DF223 for ; Thu, 7 Mar 2013 12:48:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757067Ab3CGMsH (ORCPT ); Thu, 7 Mar 2013 07:48:07 -0500 Received: from mail-ee0-f51.google.com ([74.125.83.51]:62339 "EHLO mail-ee0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751787Ab3CGMsH (ORCPT ); Thu, 7 Mar 2013 07:48:07 -0500 Received: by mail-ee0-f51.google.com with SMTP id d17so255423eek.10 for ; Thu, 07 Mar 2013 04:48:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=49ab5tllmy0NEs1wz/W+xkCYDjGShdr8vwyQbjsPwdo=; b=ed0ErOvIWM5muorJnBzwBi2hvTaAhy5MSFhICVT4nWMb0K0O/VMfeF3vwfwVojykz6 1NBa3DVPe5pl0SxyD7/+C13WrfmDCqgbubgk3DAvQFYsHHI75k96N13aMe+lITVVNeq4 TG+/hlqVwM79bH+gGw2ltfRaItSTa0MALZL4sZwfIQrpw/0IBsOA47MF0ATmN8c6QxGJ x4ZEfBec+9kSdwGOc0gFt9qEIO4yYGtu9y7IFWjeMjv5JQ+7ISlzt+5EaaA6I/knWvNd pwlfp0rCLweChWhimnR+T+bxLF4exjs7InAcUS4rEt39EJws3DXIhwBimd+zcyCMfQmO J6xw== X-Received: by 10.15.100.202 with SMTP id bn50mr92662305eeb.36.1362660485211; Thu, 07 Mar 2013 04:48:05 -0800 (PST) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPS id f47sm2039566eep.13.2013.03.07.04.48.03 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Mar 2013 04:48:04 -0800 (PST) Message-ID: <51388C80.1070208@dev.mellanox.co.il> Date: Thu, 07 Mar 2013 07:48:00 -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)" Subject: [PATCH 2/3] osmtest/osmtest.c: Minor reordering of code in, osmtest_write_all_path_recs X-Gm-Message-State: ALoCoQmudfneXPm4maqwpjdZJNu3bOUZX2yXAzHoa8rcurdUIDYao8d2HKv/t2HRygVusksVmFSV Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Hal Rosenstock --- osmtest/osmtest.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osmtest/osmtest.c b/osmtest/osmtest.c index 7e55db6..9dd0b98 100644 --- a/osmtest/osmtest.c +++ b/osmtest/osmtest.c @@ -2238,9 +2238,6 @@ osmtest_write_all_path_recs(IN osmtest_t * const p_osmt, IN FILE * fh) OSM_LOG_ENTER(&p_osmt->log); - p_tbl = &p_osmt->exp_subn.node_guid_tbl; - p_dst_node = (node_t *) cl_qmap_head(p_tbl); - result = fprintf(fh, "#\n" "# Path Records\n" "#\n"); if (result < 0) { OSM_LOG(&p_osmt->log, OSM_LOG_ERROR, "ERR 0026: " @@ -2249,6 +2246,9 @@ osmtest_write_all_path_recs(IN osmtest_t * const p_osmt, IN FILE * fh) goto Exit; } + p_tbl = &p_osmt->exp_subn.node_guid_tbl; + p_dst_node = (node_t *) cl_qmap_head(p_tbl); + while (p_dst_node != (node_t *) cl_qmap_end(p_tbl)) { OSM_LOG(&p_osmt->log, OSM_LOG_DEBUG,"Source : lid = 0x%d type = %d\n",