aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/config.c6
1 files changed, 2 insertions, 4 deletions
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)
657 657
658 user_config = strdup(mkpath("%s/.perfconfig", home)); 658 user_config = strdup(mkpath("%s/.perfconfig", home));
659 if (user_config == NULL) { 659 if (user_config == NULL) {
660 warning("Not enough memory to process %s/.perfconfig, " 660 pr_warning("Not enough memory to process %s/.perfconfig, ignoring it.", home);
661 "ignoring it.", home);
662 goto out; 661 goto out;
663 } 662 }
664 663
@@ -671,8 +670,7 @@ static int perf_config_set__init(struct perf_config_set *set)
671 ret = 0; 670 ret = 0;
672 671
673 if (st.st_uid && (st.st_uid != geteuid())) { 672 if (st.st_uid && (st.st_uid != geteuid())) {
674 warning("File %s not owned by current user or root, " 673 pr_warning("File %s not owned by current user or root, ignoring it.", user_config);
675 "ignoring it.", user_config);
676 goto out_free; 674 goto out_free;
677 } 675 }
678 676