26 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _PRINTK_H3#define _PRINTK_H4 5#include <stdio.h>6#include <asm/bug.h>7 8/*9 * memblock_dbg is called with u64 arguments that don't match the "%llu"10 * specifier in printf. This results in warnings that cannot be fixed without11 * modifying memblock.c, which we wish to avoid. As these messaged are not used12 * in testing anyway, the mismatch can be ignored.13 */14#pragma GCC diagnostic push15#pragma GCC diagnostic ignored "-Wformat"16#define printk printf17#pragma GCC diagnostic push18 19#define pr_info printk20#define pr_debug printk21#define pr_cont printk22#define pr_err printk23#define pr_warn printk24 25#endif26