printk.h 650 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _PRINTK_H
  3. #define _PRINTK_H
  4. #include <stdio.h>
  5. #include <asm/bug.h>
  6. /*
  7. * memblock_dbg is called with u64 arguments that don't match the "%llu"
  8. * specifier in printf. This results in warnings that cannot be fixed without
  9. * modifying memblock.c, which we wish to avoid. As these messaged are not used
  10. * in testing anyway, the mismatch can be ignored.
  11. */
  12. #pragma GCC diagnostic push
  13. #pragma GCC diagnostic ignored "-Wformat"
  14. #define printk printf
  15. #pragma GCC diagnostic push
  16. #define pr_info printk
  17. #define pr_debug printk
  18. #define pr_cont printk
  19. #define pr_err printk
  20. #define pr_warn printk
  21. #endif