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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4cf134e7
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <errno.h> #include <errno.h>
#include "../perf.h" #include "../perf.h"
#include "util.h" #include "debug.h"
#include "trace-event.h" #include "trace-event.h"
#include "sane_ctype.h" #include "sane_ctype.h"
...@@ -150,7 +150,7 @@ void parse_ftrace_printk(struct pevent *pevent, ...@@ -150,7 +150,7 @@ void parse_ftrace_printk(struct pevent *pevent,
while (line) { while (line) {
addr_str = strtok_r(line, ":", &fmt); addr_str = strtok_r(line, ":", &fmt);
if (!addr_str) { if (!addr_str) {
warning("printk format with empty entry"); pr_warning("printk format with empty entry");
break; break;
} }
addr = strtoull(addr_str, NULL, 16); addr = strtoull(addr_str, NULL, 16);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment