Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cf134e7 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

perf config: Use pr_warning()

warning() is going away, consolidating error reporting.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-5r3636cwl4z1varo90mervai@git.kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 59913aab
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
	}