Sasha,

A trivial patch.  During development, we (at LLNL) sometimes use different
options/configurations.  This provides a way to know which one is active.


From d60408b4dc1cb0c917e2eb33d6a3f62ac6bb9b5c Mon Sep 17 00:00:00 2001
From: Tim Meier <[EMAIL PROTECTED]>
Date: Thu, 24 Jan 2008 11:51:08 -0800
Subject: [PATCH] opensm: osm_subnet.c  log and print the path of the cached 
option file

Logged (syslog and print) the path to the option file that is cached and parsed.
This is helpful when something other than the default path is used.

Signed-off-by: Tim Meier <[EMAIL PROTECTED]>
---
 opensm/opensm/osm_subnet.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_subnet.c b/opensm/opensm/osm_subnet.c
index 7b14e0c..bae087d 100644
--- a/opensm/opensm/osm_subnet.c
+++ b/opensm/opensm/osm_subnet.c
@@ -1175,6 +1175,10 @@ ib_api_status_t osm_subn_parse_conf_file(IN 
osm_subn_opt_t * const p_opts)
                       file_name, strerror(errno));
                return IB_ERROR;
        }
+       sprintf(line, " Reading Cached Option File: %s\n", file_name);
+       printf(line);
+       cl_log_event("OpenSM", CL_LOG_INFO, line, NULL, 0);
+

        while (fgets(line, 1023, opts_file) != NULL) {
                /* get the first token */
--
1.5.1

--
Timothy A. Meier
Computer Scientist
ICCD/High Performance Computing
925.422.3341
[EMAIL PROTECTED]
>From d60408b4dc1cb0c917e2eb33d6a3f62ac6bb9b5c Mon Sep 17 00:00:00 2001
From: Tim Meier <[EMAIL PROTECTED]>
Date: Thu, 24 Jan 2008 11:51:08 -0800
Subject: [PATCH] opensm: osm_subnet.c  log and print the path of the cached 
option file

Logged (syslog and print) the path to the option file that is cached and parsed.
This is helpful when something other than the default path is used.

Signed-off-by: Tim Meier <[EMAIL PROTECTED]>
---
 opensm/opensm/osm_subnet.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_subnet.c b/opensm/opensm/osm_subnet.c
index 7b14e0c..bae087d 100644
--- a/opensm/opensm/osm_subnet.c
+++ b/opensm/opensm/osm_subnet.c
@@ -1175,6 +1175,10 @@ ib_api_status_t osm_subn_parse_conf_file(IN 
osm_subn_opt_t * const p_opts)
                       file_name, strerror(errno));
                return IB_ERROR;
        }
+       sprintf(line, " Reading Cached Option File: %s\n", file_name);
+       printf(line);
+       cl_log_event("OpenSM", CL_LOG_INFO, line, NULL, 0);
+
 
        while (fgets(line, 1023, opts_file) != NULL) {
                /* get the first token */
-- 
1.5.1

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to