1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21#define CIFS_DEBUG
22
23#ifndef _H_CIFS_DEBUG
24#define _H_CIFS_DEBUG
25
26void cifs_dump_mem(char *label, void *data, int length);
27void cifs_dump_detail(void *);
28void cifs_dump_mids(struct TCP_Server_Info *);
29#ifdef CONFIG_CIFS_DEBUG2
30#define DBG2 2
31#else
32#define DBG2 0
33#endif
34extern int traceSMB;
35void dump_smb(void *, int);
36#define CIFS_INFO 0x01
37#define CIFS_RC 0x02
38#define CIFS_TIMER 0x04
39
40
41
42
43
44#ifdef CIFS_DEBUG
45
46
47extern int cifsFYI;
48#define cifsfyi(fmt, arg...) \
49do { \
50 if (cifsFYI & CIFS_INFO) \
51 printk(KERN_DEBUG "%s: " fmt "\n", __FILE__, ##arg); \
52} while (0)
53
54#define cFYI(set, fmt, arg...) \
55do { \
56 if (set) \
57 cifsfyi(fmt, ##arg); \
58} while (0)
59
60#define cifswarn(fmt, arg...) \
61 printk(KERN_WARNING fmt "\n", ##arg)
62
63
64extern int cifsERROR;
65
66#define cEVENT(fmt, arg...) \
67do { \
68 if (cifsERROR) \
69 printk(KERN_EVENT "%s: " fmt "\n", __FILE__, ##arg); \
70} while (0)
71
72
73#define cifserror(fmt, arg...) \
74do { \
75 if (cifsERROR) \
76 printk(KERN_ERR "CIFS VFS: " fmt "\n", ##arg); \
77} while (0)
78
79#define cERROR(set, fmt, arg...) \
80do { \
81 if (set) \
82 cifserror(fmt, ##arg); \
83} while (0)
84
85
86
87
88
89#else
90#define cERROR(set, fmt, arg...)
91#define cEVENT(fmt, arg...)
92#define cFYI(set, fmt, arg...)
93#define cifserror(fmt, arg...)
94#endif
95
96#endif
97