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