debug.h 592 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
  4. * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
  5. */
  6. #ifndef __DEBUG_H__
  7. #define __DEBUG_H__
  8. #include <linux/printk.h>
  9. #ifndef VIAFB_DEBUG
  10. #define VIAFB_DEBUG 0
  11. #endif
  12. #if VIAFB_DEBUG
  13. #define DEBUG_MSG(f, a...) printk(f, ## a)
  14. #else
  15. #define DEBUG_MSG(f, a...) no_printk(f, ## a)
  16. #endif
  17. #define VIAFB_WARN 0
  18. #if VIAFB_WARN
  19. #define WARN_MSG(f, a...) printk(f, ## a)
  20. #else
  21. #define WARN_MSG(f, a...) no_printk(f, ## a)
  22. #endif
  23. #endif /* __DEBUG_H__ */