[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-5r3636cwl4z1varo90mervai@git.kernel.org>
Date: Sat, 1 Jul 2017 01:47:42 -0700
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: hpa@...or.com, dsahern@...il.com, jolsa@...nel.org,
acme@...hat.com, namhyung@...nel.org, tglx@...utronix.de,
adrian.hunter@...el.com, linux-kernel@...r.kernel.org,
mingo@...nel.org, wangnan0@...wei.com
Subject: [tip:perf/core] perf config: Use pr_warning()
Commit-ID: 4cf134e744ba46e5893f9600487c5f7f5eae0519
Gitweb: http://git.kernel.org/tip/4cf134e744ba46e5893f9600487c5f7f5eae0519
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Tue, 27 Jun 2017 11:03:17 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Tue, 27 Jun 2017 11:03:17 -0300
perf config: Use pr_warning()
warning() is going away, consolidating error reporting.
Cc: Adrian Hunter <adrian.hunter@...el.com>
Cc: David Ahern <dsahern@...il.com>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Wang Nan <wangnan0@...wei.com>
Link: http://lkml.kernel.org/n/tip-5r3636cwl4z1varo90mervai@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/util/config.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c
index 8d724f0..1498f38 100644
--- a/tools/perf/util/config.c
+++ b/tools/perf/util/config.c
@@ -657,8 +657,7 @@ static int perf_config_set__init(struct perf_config_set *set)
user_config = strdup(mkpath("%s/.perfconfig", home));
if (user_config == NULL) {
- warning("Not enough memory to process %s/.perfconfig, "
- "ignoring it.", home);
+ pr_warning("Not enough memory to process %s/.perfconfig, ignoring it.", home);
goto out;
}
@@ -671,8 +670,7 @@ static int perf_config_set__init(struct perf_config_set *set)
ret = 0;
if (st.st_uid && (st.st_uid != geteuid())) {
- warning("File %s not owned by current user or root, "
- "ignoring it.", user_config);
+ pr_warning("File %s not owned by current user or root, ignoring it.", user_config);
goto out_free;
}
Powered by blists - more mailing lists