30 lines · c
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_DEBUG13#define VIAFB_DEBUG 014#endif15 16#if VIAFB_DEBUG17#define DEBUG_MSG(f, a...) printk(f, ## a)18#else19#define DEBUG_MSG(f, a...) no_printk(f, ## a)20#endif21 22#define VIAFB_WARN 023#if VIAFB_WARN24#define WARN_MSG(f, a...) printk(f, ## a)25#else26#define WARN_MSG(f, a...) no_printk(f, ## a)27#endif28 29#endif /* __DEBUG_H__ */30