[ofw] [PATCH] opensm - use portable macro definition for tmp file path

Smith, Stan stan.smith at intel.com
Fri May 21 09:48:36 PDT 2010


Use defined macro for tmp file path.

signed-off-by: stan smith <stan.smith at intel.com>

diff --git a/opensm/opensm/osm_db_files.c b/opensm/opensm/osm_db_files.c
index dd9f772..5771e6e 100644
--- a/opensm/opensm/osm_db_files.c
+++ b/opensm/opensm/osm_db_files.c
@@ -615,7 +615,7 @@ int main(int argc, char **argv)
        cl_list_construct(&keys);
        cl_list_init(&keys, 10);

-       osm_log_init_v2(&log, TRUE, 0xff, "/var/log/osm_db_test.log", 0, FALSE);
+       osm_log_init_v2(&log, TRUE, 0xff, OSM_DEFAULT_TMP_DIR "osm_db_test.log", 0, FALSE);

        osm_db_construct(&db);
        if (osm_db_init(&db, &log)) {



More information about the ofw mailing list