mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
This commit is contained in:
1 parent
9b81c9bfff
commit
160321b260
3 files changed
+2
-16
No files matched your search
@@ -5,8 +5,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <linux/printk.h>
|
||||
|
||||
typedef unsigned short u16;
|
||||
typedef unsigned int u32;
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user