summaryrefslogtreecommitdiff
path: root/tools/bootconfig/main.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2021-09-17 13:03:01 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-11 03:44:05 +0300
commit160321b2602ff8e42ea77a09f2e3f1b35e3acfaf (patch)
tree0ff7dfa9b508dc97579c1dd14ab78658465d5d1f /tools/bootconfig/main.c
parent9b81c9bfff4651abb28bfa6d83c8b879e467963b (diff)
downloadlinux-160321b2602ff8e42ea77a09f2e3f1b35e3acfaf.tar.xz
tools/bootconfig: Print all error message in stderr
Print all error message in stderr. This also removes unneeded tools/bootconfig/include/linux/printk.h. Link: https://lkml.kernel.org/r/163187298106.2366983.15210300267326257397.stgit@devnote2 Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/bootconfig/main.c')
-rw-r--r--tools/bootconfig/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bootconfig/main.c b/tools/bootconfig/main.c
index 4252c23bd35d..adc6c6e73fa9 100644
--- a/tools/bootconfig/main.c
+++ b/tools/bootconfig/main.c
@@ -15,6 +15,8 @@
#include <linux/kernel.h>
#include <linux/bootconfig.h>
+#define pr_err(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
+
static int xbc_show_value(struct xbc_node *node, bool semicolon)
{
const char *val, *eol;