[ofa-general] [PATCH] change log_max_size to MB
Doron Shoham
dorons at Voltaire.COM
Tue Nov 4 01:59:59 PST 2008
fixes a bug that log-limit in opensm.conf is in bytes
while opensm '-L' option accept the size in MB
Signed-off-by: Doron Shoham <dorons at voltaire.com>
---
opensm/opensm/osm_subnet.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/opensm/opensm/osm_subnet.c b/opensm/opensm/osm_subnet.c
index 0422d0f..8406232 100644
--- a/opensm/opensm/osm_subnet.c
+++ b/opensm/opensm/osm_subnet.c
@@ -1278,6 +1278,7 @@ int osm_subn_parse_conf_file(char *file_name, osm_subn_opt_t * const p_opts)
opts_unpack_uint32("log_max_size",
p_key, p_val,
(void *) & p_opts->log_max_size);
+ p_opts->log_max_size * 1024 *1024; /* convert to MB */
opts_unpack_charp("partition_config_file",
p_key, p_val, &p_opts->partition_config_file);
--
1.5.4
More information about the general
mailing list