Merge remote-tracking branch 'aosp/android-3.0' into develop-3.0
[firefly-linux-kernel-4.4.55.git] / drivers / cmmb / siano / smsdbg_prn.h
1 /****************************************************************
2
3 Siano Mobile Silicon, Inc.
4 MDTV receiver kernel modules.
5 Copyright (C) 2006-2008, Uri Shkolnik
6
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.
11
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.
16
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/>.
19
20 ****************************************************************/
21
22 #ifndef _SMS_DBG_H_
23 #define _SMS_DBG_H_
24
25 #include <linux/kernel.h>
26 #include <linux/module.h>
27
28 /************************************************************************/
29 /* Debug Zones definitions.                                             */
30 /************************************************************************/
31 #undef PERROR
32 #  define PERROR(fmt, args...) \
33         printk(KERN_ERR "spibus error: line %d- %s(): " fmt, __LINE__,\
34           __func__, ## args)
35 #undef PWARNING
36 #  define PWARNING(fmt, args...) \
37         printk(KERN_WARNING "spibus warning: line %d- %s(): " fmt, __LINE__,  \
38         __func__, ## args)
39
40 /* the debug macro - conditional compilation from the makefile */
41 // to enable log
42
43
44 //ROCK Enbale Interruption
45 //#define SPIBUS_DEBUG 1
46
47 #undef PDEBUG                   /* undef it, just in case */
48 #ifdef SPIBUS_DEBUG
49
50 #define PDEBUG(fmt, args...) \
51         printk(KERN_DEBUG " " fmt,## args)
52
53 #else
54 #  define PDEBUG(fmt, args...)  /* not debugging: nothing */
55 #endif
56
57 /* The following defines are used for printing and
58 are mandatory for compilation. */
59 #define TXT(str) str
60 #define PRN_DBG(str) PDEBUG str
61 #define PRN_ERR(str) PERROR str
62
63 #endif /*_SMS_DBG_H_*/