Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Masami Hiramatsu and committed by
Steven Rostedt (VMware)
160321b2 9b81c9bf

+2 -16
-2
tools/bootconfig/include/linux/kernel.h
··· 5 5 #include <stdlib.h> 6 6 #include <stdbool.h> 7 7 8 - #include <linux/printk.h> 9 - 10 8 typedef unsigned short u16; 11 9 typedef unsigned int u32; 12 10
-14
tools/bootconfig/include/linux/printk.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef _SKC_LINUX_PRINTK_H 3 - #define _SKC_LINUX_PRINTK_H 4 - 5 - #include <stdio.h> 6 - 7 - #define printk(fmt, ...) printf(fmt, ##__VA_ARGS__) 8 - 9 - #define pr_err printk 10 - #define pr_warn printk 11 - #define pr_info printk 12 - #define pr_debug printk 13 - 14 - #endif
+2
tools/bootconfig/main.c
··· 15 15 #include <linux/kernel.h> 16 16 #include <linux/bootconfig.h> 17 17 18 + #define pr_err(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) 19 + 18 20 static int xbc_show_value(struct xbc_node *node, bool semicolon) 19 21 { 20 22 const char *val, *eol;