From patchwork Fri May 21 16:48:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Smith, Stan" X-Patchwork-Id: 101452 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 o4LGmiOf026628 for ; Fri, 21 May 2010 16:48:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934026Ab0EUQsj (ORCPT ); Fri, 21 May 2010 12:48:39 -0400 Received: from mga03.intel.com ([143.182.124.21]:35361 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934011Ab0EUQsi convert rfc822-to-8bit (ORCPT ); Fri, 21 May 2010 12:48:38 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 21 May 2010 09:48:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,279,1272870000"; d="scan'208";a="279914688" Received: from orsmsx603.amr.corp.intel.com ([10.22.226.49]) by azsmga001.ch.intel.com with ESMTP; 21 May 2010 09:48:37 -0700 Received: from orsmsx501.amr.corp.intel.com ([10.22.226.209]) by orsmsx603.amr.corp.intel.com ([10.22.226.49]) with mapi; Fri, 21 May 2010 09:48:37 -0700 From: "Smith, Stan" To: Sasha Khapyorsky CC: "ofw@lists.openfabrics.org" , "linux-rdma@vger.kernel.org" Date: Fri, 21 May 2010 09:48:36 -0700 Subject: [PATCH] opensm - use portable macro definition for tmp file path Thread-Topic: [PATCH] opensm - use portable macro definition for tmp file path Thread-Index: Acr5BXUDb8xwg5TORU6q2me9KO3COQ== Message-ID: <3F6F638B8D880340AB536D29CD4C1E192562EBBAF6@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:48:45 +0000 (UTC) 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)) {