[ofa-general] [PATCH] opensm: only warning if no lid matrix or lft file given
Sasha Khapyorsky
sashak at voltaire.com
Mon Oct 15 07:30:23 PDT 2007
When 'file' routing engine is used it is is up to an user to load
LFT dump file, lid matrix file or both (this is specified with optional
-U and -L command line options). When one of the files is not given
OpenSM complains an error (but works properly). This turns this to just
a warning.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/opensm/osm_ucast_file.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/opensm/opensm/osm_ucast_file.c b/opensm/opensm/osm_ucast_file.c
index 9928831..ed3ca10 100644
--- a/opensm/opensm/osm_ucast_file.c
+++ b/opensm/opensm/osm_ucast_file.c
@@ -136,9 +136,8 @@ static int do_ucast_file_load(void *context)
file_name = p_osm->subn.opt.ucast_dump_file;
if (!file_name) {
- osm_log(&p_osm->log, OSM_LOG_ERROR | OSM_LOG_SYS,
- "do_ucast_file_load: ERR 6301: "
- "ucast dump file name is not defined; "
+ osm_log(&p_osm->log, OSM_LOG_VERBOSE, "do_ucast_file_load: "
+ "ucast dump file name is not given; "
"using default routing algorithm\n");
return -1;
}
@@ -274,9 +273,9 @@ static int do_lid_matrix_file_load(void *context)
file_name = p_osm->subn.opt.lid_matrix_dump_file;
if (!file_name) {
- osm_log(&p_osm->log, OSM_LOG_ERROR | OSM_LOG_SYS,
- "do_lid_matrix_file_load: ERR 6304: "
- "lid matrix file name is not defined; "
+ osm_log(&p_osm->log, OSM_LOG_VERBOSE,
+ "do_lid_matrix_file_load: "
+ "lid matrix file name is not given; "
"using default lid matrix generation algorithm\n");
return -1;
}
--
1.5.3.4.206.g58ba4
More information about the general
mailing list