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 */ 7 #ifndef __DEBUG_H__ 8 #define __DEBUG_H__ 9 10 #include <linux/printk.h> 11 12 #ifndef VIAFB_DEBUG 13 #define VIAFB_DEBUG 0 14 #endif 15 16 #if VIAFB_DEBUG 17 #define DEBUG_MSG(f, a...) printk(f, ## a) 18 #else 19 #define DEBUG_MSG(f, a...) no_printk(f, ## a) 20 #endif 21 22 #define VIAFB_WARN 0 23 #if VIAFB_WARN 24 #define WARN_MSG(f, a...) printk(f, ## a) 25 #else 26 #define WARN_MSG(f, a...) no_printk(f, ## a) 27 #endif 28 29 #endif /* __DEBUG_H__ */ 30