OSDN Git Service

net: dsa: mv88e6xxx: Fix masking of egress port
[tomoyo/tomoyo-test1.git] / 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 /* controllable printf */
8 extern int pr_output;
9 #define printk(fmt, ...)        \
10         (pr_output ? printf(fmt, ##__VA_ARGS__) : 0)
11
12 #define pr_err printk
13 #define pr_warn printk
14 #define pr_info printk
15 #define pr_debug printk
16
17 #endif