tools/bootconfig: Print all error message in stderr
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 17 Sep 2021 10:03:01 +0000 (19:03 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 11 Oct 2021 00:44:05 +0000 (20:44 -0400)
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>
tools/bootconfig/include/linux/kernel.h
tools/bootconfig/include/linux/printk.h [deleted file]
tools/bootconfig/main.c

index 2d93320aa37420cf1199675f1e9e2995e413e330..c4854b8e7023792a03d8f4c69ec036c0d9e46728 100644 (file)
@@ -5,8 +5,6 @@
 #include <stdlib.h>
 #include <stdbool.h>
 
-#include <linux/printk.h>
-
 typedef unsigned short u16;
 typedef unsigned int   u32;
 
diff --git a/tools/bootconfig/include/linux/printk.h b/tools/bootconfig/include/linux/printk.h
deleted file mode 100644 (file)
index 036e667..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _SKC_LINUX_PRINTK_H
-#define _SKC_LINUX_PRINTK_H
-
-#include <stdio.h>
-
-#define printk(fmt, ...) printf(fmt, ##__VA_ARGS__)
-
-#define pr_err printk
-#define pr_warn        printk
-#define pr_info        printk
-#define pr_debug printk
-
-#endif
index 4252c23bd35daa97e48f2a8d439304218196474c..adc6c6e73fa980b245b563544b2fe3fdeff619f1 100644 (file)
@@ -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;