From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108AbdGAIt4 (ORCPT ); Sat, 1 Jul 2017 04:49:56 -0400 Received: from terminus.zytor.com ([65.50.211.136]:59269 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751749AbdGAItz (ORCPT ); Sat, 1 Jul 2017 04:49:55 -0400 Date: Sat, 1 Jul 2017 01:47:42 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: hpa@zytor.com, dsahern@gmail.com, jolsa@kernel.org, acme@redhat.com, namhyung@kernel.org, tglx@linutronix.de, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, mingo@kernel.org, wangnan0@huawei.com Reply-To: jolsa@kernel.org, dsahern@gmail.com, hpa@zytor.com, namhyung@kernel.org, acme@redhat.com, tglx@linutronix.de, adrian.hunter@intel.com, wangnan0@huawei.com, linux-kernel@vger.kernel.org, mingo@kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf config: Use pr_warning() Git-Commit-ID: 4cf134e744ba46e5893f9600487c5f7f5eae0519 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 4cf134e744ba46e5893f9600487c5f7f5eae0519 Gitweb: http://git.kernel.org/tip/4cf134e744ba46e5893f9600487c5f7f5eae0519 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 27 Jun 2017 11:03:17 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 27 Jun 2017 11:03:17 -0300 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 --- 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; }