1*f7018c21STomi Valkeinen /* 2*f7018c21STomi Valkeinen * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved. 3*f7018c21STomi Valkeinen * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved. 4*f7018c21STomi Valkeinen 5*f7018c21STomi Valkeinen * This program is free software; you can redistribute it and/or 6*f7018c21STomi Valkeinen * modify it under the terms of the GNU General Public 7*f7018c21STomi Valkeinen * License as published by the Free Software Foundation; 8*f7018c21STomi Valkeinen * either version 2, or (at your option) any later version. 9*f7018c21STomi Valkeinen 10*f7018c21STomi Valkeinen * This program is distributed in the hope that it will be useful, 11*f7018c21STomi Valkeinen * but WITHOUT ANY WARRANTIES OR REPRESENTATIONS; without even 12*f7018c21STomi Valkeinen * the implied warranty of MERCHANTABILITY or FITNESS FOR 13*f7018c21STomi Valkeinen * A PARTICULAR PURPOSE.See the GNU General Public License 14*f7018c21STomi Valkeinen * for more details. 15*f7018c21STomi Valkeinen 16*f7018c21STomi Valkeinen * You should have received a copy of the GNU General Public License 17*f7018c21STomi Valkeinen * along with this program; if not, write to the Free Software 18*f7018c21STomi Valkeinen * Foundation, Inc., 19*f7018c21STomi Valkeinen * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20*f7018c21STomi Valkeinen */ 21*f7018c21STomi Valkeinen #ifndef __DEBUG_H__ 22*f7018c21STomi Valkeinen #define __DEBUG_H__ 23*f7018c21STomi Valkeinen 24*f7018c21STomi Valkeinen #ifndef VIAFB_DEBUG 25*f7018c21STomi Valkeinen #define VIAFB_DEBUG 0 26*f7018c21STomi Valkeinen #endif 27*f7018c21STomi Valkeinen 28*f7018c21STomi Valkeinen #if VIAFB_DEBUG 29*f7018c21STomi Valkeinen #define DEBUG_MSG(f, a...) printk(f, ## a) 30*f7018c21STomi Valkeinen #else 31*f7018c21STomi Valkeinen #define DEBUG_MSG(f, a...) 32*f7018c21STomi Valkeinen #endif 33*f7018c21STomi Valkeinen 34*f7018c21STomi Valkeinen #define VIAFB_WARN 0 35*f7018c21STomi Valkeinen #if VIAFB_WARN 36*f7018c21STomi Valkeinen #define WARN_MSG(f, a...) printk(f, ## a) 37*f7018c21STomi Valkeinen #else 38*f7018c21STomi Valkeinen #define WARN_MSG(f, a...) 39*f7018c21STomi Valkeinen #endif 40*f7018c21STomi Valkeinen 41*f7018c21STomi Valkeinen #endif /* __DEBUG_H__ */ 42