diff mbox

opensm: Add per module logging FILE_ID define to osm_congestion_control.c

Message ID 20120731082451.GB2077@calypso (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Alex Netes July 31, 2012, 8:24 a.m. UTC
Signed-off-by: Alex Netes <alexne@mellanox.com>
---
 include/opensm/osm_file_ids.h   | 1 +
 opensm/osm_congestion_control.c | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/include/opensm/osm_file_ids.h b/include/opensm/osm_file_ids.h
index 713a0f9..7c45082 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..0aa72fd 100644
--- a/opensm/osm_congestion_control.c
+++ b/opensm/osm_congestion_control.c
@@ -47,7 +47,8 @@ 
 
 #include <stdlib.h>
 #include <string.h>
-
+#include <opensm/osm_file_ids.h>
+#define FILE_ID OSM_FILE_CONGESTION_CONTROL_C
 #include <iba/ib_types.h>
 #include <complib/cl_debug.h>
 #include <opensm/osm_subnet.h>