From patchwork Fri May 21 16:51:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Smith, Stan" X-Patchwork-Id: 101453 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4LGmiOj026628 for ; Fri, 21 May 2010 16:51:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758267Ab0EUQva (ORCPT ); Fri, 21 May 2010 12:51:30 -0400 Received: from mga01.intel.com ([192.55.52.88]:17761 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758233Ab0EUQv3 convert rfc822-to-8bit (ORCPT ); Fri, 21 May 2010 12:51:29 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 21 May 2010 09:48:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,279,1272870000"; d="scan'208";a="569412083" Received: from orsmsx604.amr.corp.intel.com ([10.22.226.87]) by fmsmga002.fm.intel.com with ESMTP; 21 May 2010 09:50:33 -0700 Received: from orsmsx501.amr.corp.intel.com ([10.22.226.209]) by orsmsx604.amr.corp.intel.com ([10.250.113.17]) with mapi; Fri, 21 May 2010 09:51:29 -0700 From: "Smith, Stan" To: Sasha Khapyorsky CC: "ofw@lists.openfabrics.org" , "linux-rdma@vger.kernel.org" Date: Fri, 21 May 2010 09:51:29 -0700 Subject: [PATCH] use macro for tmp file path Thread-Topic: [PATCH] use macro for tmp file path Thread-Index: Acr5BdvWjWBfHhpBQiqY9iEboIQu7w== Message-ID: <3F6F638B8D880340AB536D29CD4C1E192562EBBB00@orsmsx501.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 21 May 2010 16:51:31 +0000 (UTC) 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); }