diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-27 10:08:14 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-27 10:08:14 -0400 |
commit | d2a74d53aa896046abcd152c03777209c57b12a2 (patch) | |
tree | 52c2f1c543156db0ff9e4fd24654e016518081bb /tools/perf/util/trace-event-parse.c | |
parent | 4cf134e744ba46e5893f9600487c5f7f5eae0519 (diff) |
perf event-parse: Use pr_warning()
Convert sole user of warning() in this file to pr_warning(),
consolidating error reporting facilities.
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-3y7yf6v673ujl2rcs34tzv8n@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/trace-event-parse.c')
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 746bbee645d9..e0a6e9a6a053 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <errno.h> | 24 | #include <errno.h> |
25 | 25 | ||
26 | #include "../perf.h" | 26 | #include "../perf.h" |
27 | #include "util.h" | 27 | #include "debug.h" |
28 | #include "trace-event.h" | 28 | #include "trace-event.h" |
29 | 29 | ||
30 | #include "sane_ctype.h" | 30 | #include "sane_ctype.h" |
@@ -150,7 +150,7 @@ void parse_ftrace_printk(struct pevent *pevent, | |||
150 | while (line) { | 150 | while (line) { |
151 | addr_str = strtok_r(line, ":", &fmt); | 151 | addr_str = strtok_r(line, ":", &fmt); |
152 | if (!addr_str) { | 152 | if (!addr_str) { |
153 | warning("printk format with empty entry"); | 153 | pr_warning("printk format with empty entry"); |
154 | break; | 154 | break; |
155 | } | 155 | } |
156 | addr = strtoull(addr_str, NULL, 16); | 156 | addr = strtoull(addr_str, NULL, 16); |