Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf config: Add missing newline on pr_warning() call in home_perfconfig()

Add missing newline on pr_warning() call in home_perfconfig().

Before:
# perf record
File /home/yangjihong/.perfconfig not owned by current user or root, ignoring it.Couldn't synthesize bpf events.

After:
# perf record
File /home/yangjihong/.perfconfig not owned by current user or root, ignoring it.
Couldn't synthesize bpf events.

Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221022092735.114967-4-yangjihong1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Yang Jihong and committed by
Arnaldo Carvalho de Melo
0cef66a9 a87edbec

+2 -2
+2 -2
tools/perf/util/config.c
··· 556 556 557 557 config = strdup(mkpath("%s/.perfconfig", home)); 558 558 if (config == NULL) { 559 - pr_warning("Not enough memory to process %s/.perfconfig, ignoring it.", home); 559 + pr_warning("Not enough memory to process %s/.perfconfig, ignoring it.\n", home); 560 560 return NULL; 561 561 } 562 562 ··· 564 564 goto out_free; 565 565 566 566 if (st.st_uid && (st.st_uid != geteuid())) { 567 - pr_warning("File %s not owned by current user or root, ignoring it.", config); 567 + pr_warning("File %s not owned by current user or root, ignoring it.\n", config); 568 568 goto out_free; 569 569 } 570 570