18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved. 48c2ecf20Sopenharmony_ci * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef __DEBUG_H__ 88c2ecf20Sopenharmony_ci#define __DEBUG_H__ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include <linux/printk.h> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef VIAFB_DEBUG 138c2ecf20Sopenharmony_ci#define VIAFB_DEBUG 0 148c2ecf20Sopenharmony_ci#endif 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#if VIAFB_DEBUG 178c2ecf20Sopenharmony_ci#define DEBUG_MSG(f, a...) printk(f, ## a) 188c2ecf20Sopenharmony_ci#else 198c2ecf20Sopenharmony_ci#define DEBUG_MSG(f, a...) no_printk(f, ## a) 208c2ecf20Sopenharmony_ci#endif 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#define VIAFB_WARN 0 238c2ecf20Sopenharmony_ci#if VIAFB_WARN 248c2ecf20Sopenharmony_ci#define WARN_MSG(f, a...) printk(f, ## a) 258c2ecf20Sopenharmony_ci#else 268c2ecf20Sopenharmony_ci#define WARN_MSG(f, a...) no_printk(f, ## a) 278c2ecf20Sopenharmony_ci#endif 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#endif /* __DEBUG_H__ */ 30