From: Arnaldo Carvalho de Melo Date: Tue, 27 Jun 2017 14:03:17 +0000 (-0300) Subject: perf config: Use pr_warning() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4cf134e744ba46e5893f9600487c5f7f5eae0519;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git perf config: Use pr_warning() warning() is going away, consolidating error reporting. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-5r3636cwl4z1varo90mervai@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index 8d724f0fa5a8..1498f38ea7ad 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; }