Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _PRINTK_H
0003 #define _PRINTK_H
0004 
0005 #include <stdio.h>
0006 #include <asm/bug.h>
0007 
0008 /*
0009  * memblock_dbg is called with u64 arguments that don't match the "%llu"
0010  * specifier in printf. This results in warnings that cannot be fixed without
0011  * modifying memblock.c, which we wish to avoid. As these messaged are not used
0012  * in testing anyway, the mismatch can be ignored.
0013  */
0014 #pragma GCC diagnostic push
0015 #pragma GCC diagnostic ignored "-Wformat"
0016 #define printk printf
0017 #pragma GCC diagnostic push
0018 
0019 #define pr_info printk
0020 #define pr_debug printk
0021 #define pr_cont printk
0022 #define pr_err printk
0023 #define pr_warn printk
0024 
0025 #endif