diff options
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r-- | tools/perf/util/header.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 1f62435f96c2..4a6a4b3a4ab7 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -385,8 +385,7 @@ static int perf_session__cache_build_ids(struct perf_session *self) | |||
385 | int ret; | 385 | int ret; |
386 | char debugdir[PATH_MAX]; | 386 | char debugdir[PATH_MAX]; |
387 | 387 | ||
388 | snprintf(debugdir, sizeof(debugdir), "%s/%s", getenv("HOME"), | 388 | snprintf(debugdir, sizeof(debugdir), "%s", buildid_dir); |
389 | DEBUG_CACHE_DIR); | ||
390 | 389 | ||
391 | if (mkdir(debugdir, 0755) != 0 && errno != EEXIST) | 390 | if (mkdir(debugdir, 0755) != 0 && errno != EEXIST) |
392 | return -1; | 391 | return -1; |