Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
0004  * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
0005 
0006  */
0007 #ifndef __DEBUG_H__
0008 #define __DEBUG_H__
0009 
0010 #include <linux/printk.h>
0011 
0012 #ifndef VIAFB_DEBUG
0013 #define VIAFB_DEBUG 0
0014 #endif
0015 
0016 #if VIAFB_DEBUG
0017 #define DEBUG_MSG(f, a...)   printk(f, ## a)
0018 #else
0019 #define DEBUG_MSG(f, a...)   no_printk(f, ## a)
0020 #endif
0021 
0022 #define VIAFB_WARN 0
0023 #if VIAFB_WARN
0024 #define WARN_MSG(f, a...)   printk(f, ## a)
0025 #else
0026 #define WARN_MSG(f, a...)   no_printk(f, ## a)
0027 #endif
0028 
0029 #endif /* __DEBUG_H__ */