mirror of
https://github.com/torvalds/linux
synced 2024-09-16 00:58:07 +00: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 <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
9b81c9bfff
commit
160321b260
|
@ -5,8 +5,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include <linux/printk.h>
|
|
||||||
|
|
||||||
typedef unsigned short u16;
|
typedef unsigned short u16;
|
||||||
typedef unsigned int u32;
|
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/kernel.h>
|
||||||
#include <linux/bootconfig.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)
|
static int xbc_show_value(struct xbc_node *node, bool semicolon)
|
||||||
{
|
{
|
||||||
const char *val, *eol;
|
const char *val, *eol;
|
||||||
|
|
Loading…
Reference in a new issue