From patchwork Wed Jun 1 22:33:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Schutt X-Patchwork-Id: 842042 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p51MXjsi030272 for ; Wed, 1 Jun 2011 22:33:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758830Ab1FAWdo (ORCPT ); Wed, 1 Jun 2011 18:33:44 -0400 Received: from sentry-two.sandia.gov ([132.175.109.14]:33147 "EHLO sentry-two.sandia.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758762Ab1FAWdn (ORCPT ); Wed, 1 Jun 2011 18:33:43 -0400 X-WSS-ID: 0LM4UO4-0B-2BH-02 X-M-MSG: Received: from interceptor1.sandia.gov (interceptor1.sandia.gov [132.175.109.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sentry-two.sandia.gov (Postfix) with ESMTP id 1F26318B34B; Wed, 1 Jun 2011 16:33:39 -0600 (MDT) Received: from sentry.sandia.gov (mm04snlnto.sandia.gov [132.175.109.21]) by interceptor1.sandia.gov (RSA Interceptor); Wed, 1 Jun 2011 16:23:48 -0600 Received: from [132.175.109.1] by sentry.sandia.gov with ESMTP (SMTP Relay 01 (Email Firewall v6.3.2)); Wed, 01 Jun 2011 16:33:15 -0600 X-Server-Uuid: 6BFC7783-7E22-49B4-B610-66D6BE496C0E Received: from localhost.localdomain (sale659.sandia.gov [134.253.4.20]) by mailgate.sandia.gov (8.14.4/8.14.4) with ESMTP id p51MWhX5002002; Wed, 1 Jun 2011 16:32:45 -0600 From: "Jim Schutt" To: alexne@voltaire.com cc: davem@systemfabricworks.com, linux-rdma@vger.kernel.org, "Jim Schutt" Subject: [PATCH 2/2] opensm: use OSM_LOG_INFO on duplicate torus port order parsing Date: Wed, 1 Jun 2011 16:33:01 -0600 Message-ID: <1306967581-1015-2-git-send-email-jaschut@sandia.gov> X-Mailer: git-send-email 1.6.2.2 In-Reply-To: <4DE6BD7A.9030102@sandia.gov> References: <4DE6BD7A.9030102@sandia.gov> X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.6.1.222416 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_800_899 0, DATE_TZ_NA 0, __ANY_URI 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __SUBJECT_ENDING_IN_LATIN_OR_NUMERALS 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS ' X-TMWD-Spam-Summary: TS=20110601223318; ID=1; SEV=2.3.1; DFV=B2011060122; IFV=NA; AIF=B2011060122; RPD=5.03.0010; ENG=NA; RPDID=7374723D303030312E30413031303230312E34444536424532452E303033353A534346535441543838363133332C73733D312C6667733D30; CAT=NONE; CON=NONE; SIG=AAAAAAAAAAAAAAAAAAAAAAAAfQ== X-MMS-Spam-Filter-ID: B2011060122_5.03.0010 MIME-Version: 1.0 X-WSS-ID: 61F861A1340105497-01-01 X-RSA-Inspected: yes X-RSA-Classifications: public X-RSA-Action: allow 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 (demeter2.kernel.org [140.211.167.43]); Wed, 01 Jun 2011 22:33:46 +0000 (UTC) Since it doesn't cause OpenSM to exit, it isn't an error. We just want to give the admin information that will allow them to clean up their configuration. Signed-off-by: Jim Schutt --- opensm/osm_torus.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opensm/osm_torus.c b/opensm/osm_torus.c index 47654ce..d06cea9 100644 --- a/opensm/osm_torus.c +++ b/opensm/osm_torus.c @@ -870,8 +870,8 @@ bool parse_port_order(struct torus *t, const char *parse_sep) for (j = 0; j < i; j++) { if (t->port_order[j] == t->port_order[i]) { - OSM_LOG(&t->osm->log, OSM_LOG_ERROR, - "Error: ignoring duplicate port %u in " + OSM_LOG(&t->osm->log, OSM_LOG_INFO, + "Ignored duplicate port %u in" " port_order parsing\n", t->port_order[j]); i--; /* Ignore duplicate port number */