diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-11-09 15:12:03 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-11-11 16:41:31 -0500 |
commit | e87b49116dedba3464fd8d0ec9393b4841167334 (patch) | |
tree | 40db7c1c225a0c601207c9dd28da46f57ccf52ed /tools/perf | |
parent | 4a4c03c1bb286bf0def7ae506bc076285f58d8b6 (diff) |
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>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 428149bc64d2..c35ffdd360fe 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -29,7 +29,7 @@ static int perf_session__open(struct perf_session *session) | |||
29 | struct perf_data_file *file = session->file; | 29 | struct perf_data_file *file = session->file; |
30 | 30 | ||
31 | if (perf_session__read_header(session) < 0) { | 31 | 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"); |
33 | return -1; | 33 | return -1; |
34 | } | 34 | } |
35 | 35 | ||
@@ -37,17 +37,17 @@ static int perf_session__open(struct perf_session *session) | |||
37 | return 0; | 37 | return 0; |
38 | 38 | ||
39 | if (!perf_evlist__valid_sample_type(session->evlist)) { | 39 | if (!perf_evlist__valid_sample_type(session->evlist)) { |
40 | pr_err("non matching sample_type"); | 40 | pr_err("non matching sample_type\n"); |
41 | return -1; | 41 | return -1; |
42 | } | 42 | } |
43 | 43 | ||
44 | if (!perf_evlist__valid_sample_id_all(session->evlist)) { | 44 | 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"); |
46 | return -1; | 46 | return -1; |
47 | } | 47 | } |
48 | 48 | ||
49 | if (!perf_evlist__valid_read_format(session->evlist)) { | 49 | if (!perf_evlist__valid_read_format(session->evlist)) { |
50 | pr_err("non matching read_format"); | 50 | pr_err("non matching read_format\n"); |
51 | return -1; | 51 | return -1; |
52 | } | 52 | } |
53 | 53 | ||