Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752577AbcCaGyp (ORCPT ); Thu, 31 Mar 2016 02:54:45 -0400 Received: from terminus.zytor.com ([198.137.202.10]:34800 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753511AbcCaGyl (ORCPT ); Thu, 31 Mar 2016 02:54:41 -0400 Date: Wed, 30 Mar 2016 23:54:02 -0700 From: tip-bot for Taeung Song Message-ID: Cc: hpa@zytor.com, tglx@linutronix.de, jolsa@kernel.org, treeze.taeung@gmail.com, acme@redhat.com, peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, namhyung@kernel.org Reply-To: mingo@kernel.org, linux-kernel@vger.kernel.org, namhyung@kernel.org, treeze.taeung@gmail.com, acme@redhat.com, peterz@infradead.org, jolsa@kernel.org, tglx@linutronix.de, hpa@zytor.com In-Reply-To: <1459099340-16911-3-git-send-email-treeze.taeung@gmail.com> References: <1459099340-16911-3-git-send-email-treeze.taeung@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf config: Rename 'v' to 'home' in set_buildid_dir() Git-Commit-ID: 37194f443a5a7157866ba68b04827e111100167b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1413 Lines: 40 Commit-ID: 37194f443a5a7157866ba68b04827e111100167b Gitweb: http://git.kernel.org/tip/37194f443a5a7157866ba68b04827e111100167b Author: Taeung Song AuthorDate: Mon, 28 Mar 2016 02:22:20 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 30 Mar 2016 11:14:09 -0300 perf config: Rename 'v' to 'home' in set_buildid_dir() Change the variable name 'v' to 'home' to make it more readable. Signed-off-by: Taeung Song Acked-by: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1459099340-16911-3-git-send-email-treeze.taeung@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/config.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index 2dd78f4..5c20d78 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c @@ -540,10 +540,11 @@ void set_buildid_dir(const char *dir) /* default to $HOME/.debug */ if (buildid_dir[0] == '\0') { - char *v = getenv("HOME"); - if (v) { + char *home = getenv("HOME"); + + if (home) { snprintf(buildid_dir, MAXPATHLEN-1, "%s/%s", - v, DEBUG_CACHE_DIR); + home, DEBUG_CACHE_DIR); } else { strncpy(buildid_dir, DEBUG_CACHE_DIR, MAXPATHLEN-1); }