Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1365148

[PATCH 3/3] perf config: Rename 'v' to 'home' at set_buildid_dir

From Taeung Song <treeze.taeung@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 3/3] perf config: Rename 'v' to 'home' at set_buildid_dir
Date 2016-03-27 19:30 +0200
Message-ID <rhmFI-35B-13@gated-at.bofh.it> (permalink)
References <rhmFI-35B-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Change a variable name 'v' to
'home' to be more readable name.

Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
---
 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);
 		}
-- 
2.5.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] perf config: Remove duplicated the code calling set_buildid_dir Taeung Song <treeze.taeung@gmail.com> - 2016-03-27 19:30 +0200
  [PATCH 3/3] perf config: Rename 'v' to 'home' at set_buildid_dir Taeung Song <treeze.taeung@gmail.com> - 2016-03-27 19:30 +0200
    [tip:perf/core] perf config: Rename 'v' to 'home' in  set_buildid_dir() tip-bot for Taeung Song <tipbot@zytor.com> - 2016-03-31 09:00 +0200
  Re: [PATCH 1/3] perf config: Remove duplicated the code calling  set_buildid_dir Jiri Olsa <jolsa@redhat.com> - 2016-03-28 22:00 +0200
    Re: [PATCH 1/3] perf config: Remove duplicated the code calling  set_buildid_dir Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-03-28 23:10 +0200
      Re: [PATCH 1/3] perf config: Remove duplicated the code calling  set_buildid_dir Taeung Song <treeze.taeung@gmail.com> - 2016-03-29 02:00 +0200
  [tip:perf/core] perf config: Remove duplicated set_buildid_dir  calls tip-bot for Taeung Song <tipbot@zytor.com> - 2016-03-31 09:00 +0200

csiph-web