hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/video/fbdev/via/debug.h
....@@ -1,25 +1,13 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
34 * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
45
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of the GNU General Public
7
- * License as published by the Free Software Foundation;
8
- * either version 2, or (at your option) any later version.
9
-
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTIES OR REPRESENTATIONS; without even
12
- * the implied warranty of MERCHANTABILITY or FITNESS FOR
13
- * A PARTICULAR PURPOSE.See the GNU General Public License
14
- * for more details.
15
-
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc.,
19
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
206 */
217 #ifndef __DEBUG_H__
228 #define __DEBUG_H__
9
+
10
+#include <linux/printk.h>
2311
2412 #ifndef VIAFB_DEBUG
2513 #define VIAFB_DEBUG 0
....@@ -28,14 +16,14 @@
2816 #if VIAFB_DEBUG
2917 #define DEBUG_MSG(f, a...) printk(f, ## a)
3018 #else
31
-#define DEBUG_MSG(f, a...)
19
+#define DEBUG_MSG(f, a...) no_printk(f, ## a)
3220 #endif
3321
3422 #define VIAFB_WARN 0
3523 #if VIAFB_WARN
3624 #define WARN_MSG(f, a...) printk(f, ## a)
3725 #else
38
-#define WARN_MSG(f, a...)
26
+#define WARN_MSG(f, a...) no_printk(f, ## a)
3927 #endif
4028
4129 #endif /* __DEBUG_H__ */