Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / testing / memblock / linux / printk.h
blob61af424d8c6c3351f4e407c2a87a8b7c12748f22
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PRINTK_H
3 #define _PRINTK_H
5 #include <stdio.h>
6 #include <asm/bug.h>
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 without
11 * modifying memblock.c, which we wish to avoid. As these messaged are not used
12 * in testing anyway, the mismatch can be ignored.
14 #pragma GCC diagnostic push
15 #pragma GCC diagnostic ignored "-Wformat"
16 #define printk printf
17 #pragma GCC diagnostic push
19 #define pr_info printk
20 #define pr_debug printk
21 #define pr_cont printk
22 #define pr_err printk
23 #define pr_warn printk
25 #endif