summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/config.c
diff options
context:
space:
mode:
authorTaeung Song <treeze.taeung@gmail.com>2016-03-28 02:22:20 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-03-30 11:14:09 -0300
commit37194f443a5a7157866ba68b04827e111100167b (patch)
tree4603e4cd10d1fecbc6f60653b74204a57d1675d0 /tools/perf/util/config.c
parent9cb5987c822714352e3eb46806fc260b3cb4ff0d (diff)
downloadop-kernel-dev-37194f443a5a7157866ba68b04827e111100167b.zip
op-kernel-dev-37194f443a5a7157866ba68b04827e111100167b.tar.gz
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 <treeze.taeung@gmail.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1459099340-16911-3-git-send-email-treeze.taeung@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/config.c')
-rw-r--r--tools/perf/util/config.c7
1 files 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);
}
OpenPOWER on IntegriCloud