Skip to contentSkip to conversation

perf event-parse: Use pr_warning()

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jul 1, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  d2a74d53aa896046abcd152c03777209c57b12a2
Gitweb:     http://git.kernel.org/tip/d2a74d53aa896046abcd152c03777209c57b12a2
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 27 Jun 2017 11:08:14 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 27 Jun 2017 11:08:14 -0300

perf event-parse: Use pr_warning()

Convert sole user of warning() in this file to pr_warning(), consolidating error reporting facilities.

---
 tools/perf/util/trace-event-parse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/util/trace-event-parse.c +2 -2
index 746bbee..e0a6e9a 100644
@@ -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);