[ofw] [PATCH] use macro for tmp file path

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


Use defined macro for tmp file path

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

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);
 }



More information about the ofw mailing list