From patchwork Tue Sep 18 18:53:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1474351 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 DDB8EDF24C for ; Tue, 18 Sep 2012 18:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753721Ab2IRSxR (ORCPT ); Tue, 18 Sep 2012 14:53:17 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:60809 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752626Ab2IRSxQ (ORCPT ); Tue, 18 Sep 2012 14:53:16 -0400 Received: by eaac11 with SMTP id c11so54072eaa.19 for ; Tue, 18 Sep 2012 11:53:15 -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=VK87CM4BVWngnKUoFuIuiyg9pi+EA9fgZ4fMxR/VfMU=; b=P7bfhiiBux9GrlLszE4MlO1IThb6wByvhc1lOlQzw9j7hbhO05gYPc6g2CR/vRyyRr WpbrSE6GKVfzlFzCF+o4MdWh27Bc1Al2GQ6Np7sRrKw4Inb7w6xJdB50vnOooBYF/7rg +Zcoa2C5MkAlrHsGW8GC6s4MgOs3OL/TW/xELl/B1PgDQ555DTasYKlXvMSaAZI5efXn B41lipmutFpc6vWbOoxMSldAIhcdI8FsmHi4Ofp/Wz4nMLVPfxWv8QLFOatmyOxqikVq Kn/kbB3w5fhZSnW5MtbCiFhptVXkD+bLGGzTbOZY8gSssxkVhTrmtDcnPf7+6JoB+NEC moBQ== Received: by 10.14.207.9 with SMTP id m9mr1066518eeo.5.1347994395149; Tue, 18 Sep 2012 11:53:15 -0700 (PDT) Received: from [169.254.173.157] (c-71-192-10-85.hsd1.ma.comcast.net. [71.192.10.85]) by mx.google.com with ESMTPS id v3sm951891eep.10.2012.09.18.11.53.13 (version=SSLv3 cipher=OTHER); Tue, 18 Sep 2012 11:53:14 -0700 (PDT) Message-ID: <5058C316.1070409@dev.mellanox.co.il> Date: Tue, 18 Sep 2012 14:53:10 -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][TRIVIAL] opensm/osm_torus.c: Add error code to error log message X-Gm-Message-State: ALoCoQmNscHv7jao7QhlI88m1/CSoLBYOTs8qPJFHJ3O+uPXHcEgGpNB3XWTUUBXmay8ZLK/seyu Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Also, cosmetic formatting change Signed-off-by: Hal Rosenstock --- 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 addda89..49abef8 100644 --- a/opensm/osm_torus.c +++ b/opensm/osm_torus.c @@ -8583,7 +8583,7 @@ osm_mtree_node_t *mcast_stree_branch(struct t_switch *sw, osm_switch_t *osm_sw, mtn = osm_mtree_node_new(osm_sw); if (!mtn) { OSM_LOG(&sw->torus->osm->log, OSM_LOG_ERROR, - "Insufficient memory to build multicast tree\n"); + "ERR 4E46: Insufficient memory to build multicast tree\n"); goto out; } mcast_tbl = osm_switch_get_mcast_tbl_ptr(osm_sw); @@ -9186,7 +9186,7 @@ void check_qos_config(osm_qos_options_t *opt, bool tgt_is_default, if (opt->vlarb_high) { is_default = false; vlarb_str = opt->vlarb_high; - } else{ + } else { is_default = true; vlarb_str = OSM_DEFAULT_QOS_VLARB_HIGH; }