0001
0002
0003
0004
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