WIP FPC-III support
[linux/fpc-iii.git] / drivers / video / fbdev / via / debug.h
blob80fdfe4171c539409be29d86ecefa7f17453ac1b
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.
6 */
7 #ifndef __DEBUG_H__
8 #define __DEBUG_H__
10 #include <linux/printk.h>
12 #ifndef VIAFB_DEBUG
13 #define VIAFB_DEBUG 0
14 #endif
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
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
29 #endif /* __DEBUG_H__ */