diff mbox

opensm - use portable macro definition for tmp file path

Message ID 3F6F638B8D880340AB536D29CD4C1E192562EBBAF6@orsmsx501.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Smith, Stan May 21, 2010, 4:48 p.m. UTC
None
diff mbox

Patch

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)) {