at v5.6-rc1 17 lines 336 B view raw
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 */ 8extern 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