From patchwork Mon Jan 5 19:28:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Chu X-Patchwork-Id: 5570281 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 60A039F4DC for ; Mon, 5 Jan 2015 19:28:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 888AC20121 for ; Mon, 5 Jan 2015 19:28:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6DAD22011E for ; Mon, 5 Jan 2015 19:28:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753360AbbAET2M (ORCPT ); Mon, 5 Jan 2015 14:28:12 -0500 Received: from prdiron-3.llnl.gov ([128.15.143.173]:50702 "EHLO prdiron-3.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753342AbbAET2M (ORCPT ); Mon, 5 Jan 2015 14:28:12 -0500 X-Attachments: Received: from auk59.llnl.gov (HELO [134.9.93.24]) ([134.9.93.24]) by prdiron-3.llnl.gov with ESMTP; 05 Jan 2015 11:28:11 -0800 Subject: [PATCH] opensm/osm_subnet.c: Correct output error with congestion control table entries From: Albert Chu To: linux-rdma@vger.kernel.org Date: Mon, 05 Jan 2015 11:28:10 -0800 Message-Id: <1420486090.21271.76.camel@auk59.llnl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-19.el5) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Signed-off-by: Albert L. Chu --- opensm/osm_subnet.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opensm/osm_subnet.c b/opensm/osm_subnet.c index d577a69..ba760ff 100644 --- a/opensm/osm_subnet.c +++ b/opensm/osm_subnet.c @@ -2926,10 +2926,10 @@ void osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * p_opts) fprintf(out, "%u:%u", p_opts->cc_cct.entries[0].shift, p_opts->cc_cct.entries[0].multiplier); - for (i = 0; i < p_opts->cc_cct.entries_len; i++) { + for (i = 1; i < p_opts->cc_cct.entries_len; i++) { fprintf(out, ",%u:%u", - p_opts->cc_cct.entries[0].shift, - p_opts->cc_cct.entries[0].multiplier); + p_opts->cc_cct.entries[i].shift, + p_opts->cc_cct.entries[i].multiplier); } fprintf(out, "\n"); }