From patchwork Tue Jul 31 09:33:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 1258621 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 89ADA3FC71 for ; Tue, 31 Jul 2012 09:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751838Ab2GaJdj (ORCPT ); Tue, 31 Jul 2012 05:33:39 -0400 Received: from mail-vb0-f46.google.com ([209.85.212.46]:39968 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751217Ab2GaJdj (ORCPT ); Tue, 31 Jul 2012 05:33:39 -0400 Received: by vbbff1 with SMTP id ff1so5541052vbb.19 for ; Tue, 31 Jul 2012 02:33:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=G54Wj4jqtLrGDWd9VuwS0N9qha6drxcKvuJzGN9C7xo=; b=ROtx19PCZ0sfEnThWPOXogE/l0l5gMuK16cJmmrOgVVWIxyouN6GCGWXyfKfYrkfeM 6YSNQg6PT8DPuFuYkGu84xk4MVIqaUP6dhXnJHaTBtRHMg12ZPUVmSPEBI2tZzsxsrMF 6U6KWNvL8O7lHVlwuNpBgrZsVUBEfU0KsImtuXO8Gj346oMXVD0kPaid9e/VTJ/fObfN XIusIoqKsidJEJtGUfRJoV0cz+gVIwPKIv9etwx7GWZJxMxNNORH/FRtiP5JZbZ+GHMc IOJftnHqwe+zI0efNegX8EOxpI/hYgizfCzHNyvwrZA9mt/UWfippxI9AbpQBFtVwI31 kxew== Received: by 10.52.70.116 with SMTP id l20mr12044670vdu.19.1343727218017; Tue, 31 Jul 2012 02:33:38 -0700 (PDT) Received: from localhost ([193.47.165.251]) by mx.google.com with ESMTPS id l12sm11760759vdh.8.2012.07.31.02.33.35 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 02:33:37 -0700 (PDT) Date: Tue, 31 Jul 2012 12:33:34 +0300 From: Alex Netes To: linux-rdma@vger.kernel.org Subject: [PATCHv2] opensm: Add per module logging FILE_ID define to osm_congestion_control.c Message-ID: <20120731093334.GC2077@calypso> References: <20120731082451.GB2077@calypso> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120731082451.GB2077@calypso> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQmXTreBxoIJEaTXvsF4pgktCetPn5lccF8id58z5ek9P3I0XKkl0aWCs3bNN5OiZadTVTif Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Alex Netes --- Changes since v1: Updated module_name_str array include/opensm/osm_file_ids.h | 1 + opensm/osm_congestion_control.c | 3 ++- opensm/osm_subnet.c | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/opensm/osm_file_ids.h b/include/opensm/osm_file_ids.h index 713a0f9..e23710c 100644 --- a/include/opensm/osm_file_ids.h +++ b/include/opensm/osm_file_ids.h @@ -149,6 +149,7 @@ typedef enum _osm_file_ids_enum { OSM_FILE_VL_ARB_RCV_C, OSM_FILE_ST_C, OSM_FILE_UCAST_DFSSSP_C, + OSM_FILE_CONGESTION_CONTROL_C, } osm_file_ids_enum; /***********/ diff --git a/opensm/osm_congestion_control.c b/opensm/osm_congestion_control.c index 640f3fa..960b728 100644 --- a/opensm/osm_congestion_control.c +++ b/opensm/osm_congestion_control.c @@ -47,7 +47,8 @@ #include #include - +#include +#define FILE_ID OSM_FILE_CONGESTION_CONTROL_C #include #include #include diff --git a/opensm/osm_subnet.c b/opensm/osm_subnet.c index 2358140..3dded18 100644 --- a/opensm/osm_subnet.c +++ b/opensm/osm_subnet.c @@ -182,9 +182,10 @@ static const char *module_name_str[] = { "osm_vl_arb_rcv.c", "st.c", "osm_ucast_dfsssp.c", + "osm_congestion_control.c" /* Add new module names here ... */ /* FILE_ID define in those modules must be identical to index here */ - /* last FILE_ID is currently 88 */ + /* last FILE_ID is currently 89 */ }; #define MOD_NAME_STR_UNKNOWN_VAL (ARR_SIZE(module_name_str))