diff mbox

use macro for tmp file path

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

Commit Message

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

Patch

diff --git a/opensm/opensm/st.c b/opensm/opensm/st.c
index ea76038..2d39117 100644
--- a/opensm/opensm/st.c
+++ b/opensm/opensm/st.c
@@ -174,7 +174,7 @@  static int init_st = 0;

 static void stat_col()
 {
-       FILE *f = fopen("/var/log/osm_st_col", "w");
+       FILE *f = fopen( OSM_DEFAULT_TMP_DIR "osm_st_col", "w");
        fprintf(f, "collision: %d\n", collision);
        fclose(f);
 }