diff options
Diffstat (limited to 'tools/perf/util/data.c')
-rw-r--r-- | tools/perf/util/data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/data.c b/tools/perf/util/data.c index 55de44ecebef..29d720cf5844 100644 --- a/tools/perf/util/data.c +++ b/tools/perf/util/data.c | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #include "data.h" | 8 | #include "data.h" |
9 | #include "util.h" | 9 | #include "util.h" |
10 | #include "debug.h" | ||
10 | 11 | ||
11 | static bool check_pipe(struct perf_data_file *file) | 12 | static bool check_pipe(struct perf_data_file *file) |
12 | { | 13 | { |
@@ -65,7 +66,7 @@ static int open_file_read(struct perf_data_file *file) | |||
65 | goto out_close; | 66 | goto out_close; |
66 | 67 | ||
67 | if (!file->force && st.st_uid && (st.st_uid != geteuid())) { | 68 | if (!file->force && st.st_uid && (st.st_uid != geteuid())) { |
68 | pr_err("file %s not owned by current user or root\n", | 69 | pr_err("File %s not owned by current user or root (use -f to override)\n", |
69 | file->path); | 70 | file->path); |
70 | goto out_close; | 71 | goto out_close; |
71 | } | 72 | } |