Skip to content

Commit e87b491

Browse files
committed
perf session: Add missing newlines to some pr_err() calls
Before: [acme@zoo linux]$ perf evlist WARNING: The perf.data file's data size field is 0 which is unexpected. Was the 'perf record' command properly terminated? non matching sample_type[acme@zoo linux]$ After: [acme@zoo linux]$ perf evlist WARNING: The perf.data file's data size field is 0 which is unexpected. Was the 'perf record' command properly terminated? non matching sample_type [acme@zoo linux]$ Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-wscok3a2s7yrj8156oc2r6qe@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 4a4c03c commit e87b491

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/perf/util/session.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@ static int perf_session__open(struct perf_session *session)
2929
struct perf_data_file *file = session->file;
3030

3131
if (perf_session__read_header(session) < 0) {
32-
pr_err("incompatible file format (rerun with -v to learn more)");
32+
pr_err("incompatible file format (rerun with -v to learn more)\n");
3333
return -1;
3434
}
3535

3636
if (perf_data_file__is_pipe(file))
3737
return 0;
3838

3939
if (!perf_evlist__valid_sample_type(session->evlist)) {
40-
pr_err("non matching sample_type");
40+
pr_err("non matching sample_type\n");
4141
return -1;
4242
}
4343

4444
if (!perf_evlist__valid_sample_id_all(session->evlist)) {
45-
pr_err("non matching sample_id_all");
45+
pr_err("non matching sample_id_all\n");
4646
return -1;
4747
}
4848

4949
if (!perf_evlist__valid_read_format(session->evlist)) {
50-
pr_err("non matching read_format");
50+
pr_err("non matching read_format\n");
5151
return -1;
5252
}
5353

0 commit comments

Comments
 (0)