1 /****************************************************************
3 Siano Mobile Silicon, Inc.
4 MDTV receiver kernel modules.
5 Copyright (C) 2006-2008, Uri Shkolnik
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ****************************************************************/
25 #include <linux/kernel.h>
26 #include <linux/module.h>
28 /************************************************************************/
29 /* Debug Zones definitions. */
30 /************************************************************************/
32 # define PERROR(fmt, args...) \
33 printk(KERN_ERR "spibus error: line %d- %s(): " fmt, __LINE__,\
36 # define PWARNING(fmt, args...) \
37 printk(KERN_WARNING "spibus warning: line %d- %s(): " fmt, __LINE__, \
40 /* the debug macro - conditional compilation from the makefile */
44 //ROCK Enbale Interruption
45 //#define SPIBUS_DEBUG 1
47 #undef PDEBUG /* undef it, just in case */
50 #define PDEBUG(fmt, args...) \
51 printk(KERN_DEBUG " " fmt,## args)
54 # define PDEBUG(fmt, args...) /* not debugging: nothing */
57 /* The following defines are used for printing and
58 are mandatory for compilation. */
60 #define PRN_DBG(str) PDEBUG str
61 #define PRN_ERR(str) PERROR str
63 #endif /*_SMS_DBG_H_*/