perf event-parse: Use pr_warning()
authorArnaldo Carvalho de Melo <[email protected]>
Tue, 27 Jun 2017 14:08:14 +0000 (11:08 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 27 Jun 2017 14:08:14 +0000 (11:08 -0300)
Convert sole user of warning() in this file to pr_warning(),
consolidating error reporting facilities.

Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/trace-event-parse.c

index 746bbee645d98a69e3edabb73d92dd9a87da7422..e0a6e9a6a05355bc43e99585ec3a3f134e65b1e8 100644 (file)
@@ -24,7 +24,7 @@
 #include <errno.h>
 
 #include "../perf.h"
-#include "util.h"
+#include "debug.h"
 #include "trace-event.h"
 
 #include "sane_ctype.h"
@@ -150,7 +150,7 @@ void parse_ftrace_printk(struct pevent *pevent,
        while (line) {
                addr_str = strtok_r(line, ":", &fmt);
                if (!addr_str) {
-                       warning("printk format with empty entry");
+                       pr_warning("printk format with empty entry");
                        break;
                }
                addr = strtoull(addr_str, NULL, 16);